hugo-theme-hyde-hyde/layouts/partials/highlight-js.html

11 lines
409 B
HTML
Raw Normal View History

2018-05-30 23:29:05 +00:00
{{ if .Site.Params.highlightjs -}}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
2018-07-10 01:41:30 +00:00
{{ with .Site.Params.highlightjslanguages }}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
2018-05-30 23:29:05 +00:00
{{ end }}
<script type="text/javascript">
hljs.configure({languages: []});
hljs.initHighlightingOnLoad();
</script>
{{- end }}