28 lines
No EOL
1.1 KiB
HTML
28 lines
No EOL
1.1 KiB
HTML
{{ if .Site.Params.highlightjs -}}
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
|
{{ range .Site.Params.highlightjslanguages }}
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
|
|
{{ end }}
|
|
<script type="text/javascript">
|
|
hljs.configure({languages: []});
|
|
hljs.initHighlightingOnLoad();
|
|
</script>
|
|
{{- end }}
|
|
<!-- Disqus-->
|
|
{{ if .Site.DisqusShortname -}}
|
|
{{ if ne .Params.showcomments false }}
|
|
<h2>Comments</h2>
|
|
{{ partial "post_disqus.html" . }}
|
|
{{ end }}
|
|
{{ else if .Site.Params.GraphCommentId -}}
|
|
<div id="graphcomment"></div>
|
|
<script type="text/javascript">
|
|
window.graphcomment_id = '{{ .Site.Params.GraphCommentId }}';
|
|
/* - - - DON'T EDIT BELOW THIS LINE - - - */
|
|
(function() {
|
|
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
|
gc.src = 'https://graphcomment.com/js/integration.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
|
})();
|
|
</script>
|
|
{{- end }} |