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

28 lines
1.1 KiB
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 "post_disqus.html" . }}
{{ end }}
{{ else if .Site.Params.GraphCommentId -}}
2018-04-04 21:57:07 +00:00
<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 }}