2018-01-24 09:42:50 +00:00
|
|
|
{{ if .Site.Params.highlightjs -}}
|
2018-02-21 23:37:37 +00:00
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
2018-01-24 09:42:50 +00:00
|
|
|
{{ range .Site.Params.highlightjslanguages }}
|
2018-02-21 23:37:37 +00:00
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
|
2018-01-24 09:42:50 +00:00
|
|
|
{{ end }}
|
|
|
|
<script type="text/javascript">
|
|
|
|
hljs.initHighlightingOnLoad();
|
|
|
|
</script>
|
|
|
|
{{- end }}
|
|
|
|
<!-- Disqus-->
|
|
|
|
{{ if .Site.DisqusShortname -}}
|
|
|
|
{{ if ne .Params.showcomments false }}
|
|
|
|
<h2>Comments</h2>
|
|
|
|
{{ partial "post_disqus.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{- end }}
|