Restructures and refactores the partial layouts
This commit is contained in:
parent
55d7de3e96
commit
6139c76987
8 changed files with 15 additions and 50 deletions
19
layouts/partials/commenting.html
Normal file
19
layouts/partials/commenting.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{ 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 "commenting_disqus.html" . }}
|
||||
{{ end }}
|
||||
{{ else if .Site.Params.GraphCommentId -}}
|
||||
{{ partial "commenting_graph.html" . }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue