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

11 lines
407 B
HTML
Raw Normal View History

{{ if .Site.Params.highlightjs }}
2018-05-30 23:29:05 +00:00
<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 }}