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

13 lines
443 B
HTML
Raw Normal View History

{{ if .Site.Params.highlightjs }}
<script src="https://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 }}
2018-08-14 23:06:50 +00:00
{{ range . }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
2018-05-30 23:29:05 +00:00
{{ end }}
2018-08-14 23:06:50 +00:00
{{ end }}
2018-05-30 23:29:05 +00:00
<script type="text/javascript">
hljs.configure({languages: []});
hljs.initHighlightingOnLoad();
</script>
{{ end }}