Browse Source

Merge pull request #6 from rossburton/master

Disable disqus templates if DisqusShortname is not set
main
Kailash Nadh 2 years ago
committed by GitHub
parent
commit
0611f193d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      layouts/_default/single.html

+ 2
- 0
layouts/_default/single.html View File

@ -36,6 +36,7 @@
{{ end }}
</div>
{{- if .Site.DisqusShortname -}}
{{- $.Scratch.Set "isDisqus" true -}}
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
@ -51,6 +52,7 @@
{{- if eq ($.Scratch.Get "isDisqus") true -}}
{{- partial "disqus.html" . -}}
{{- end -}}
{{- end -}}
</div>
</div>
{{ partial "footer.html" . }}


Loading…
Cancel
Save