hugo-theme-hyde-hyde/layouts/partials/commenting.html

19 lines
688 B
HTML
Raw Normal View History

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">
2018-04-04 12:04:36 +00:00
hljs.configure({languages: []});
2018-01-24 09:42:50 +00:00
hljs.initHighlightingOnLoad();
</script>
{{- end }}
<!-- Disqus-->
{{ if .Site.DisqusShortname -}}
{{ if ne .Params.showcomments false }}
<h2>Comments</h2>
{{ partial "commenting_disqus.html" . }}
2018-01-24 09:42:50 +00:00
{{ end }}
{{ else if .Site.Params.GraphCommentId -}}
{{ partial "commenting_graph.html" . }}
2018-04-04 21:57:07 +00:00
{{- end }}