Sfoglia il codice sorgente

Merge pull request #6 from rossburton/master

Disable disqus templates if DisqusShortname is not set
pull/7/head
Kailash Nadh 4 anni fa
parent
commit
0611f193d6
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      layouts/_default/single.html

+ 2
- 0
layouts/_default/single.html Vedi 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…
Annulla
Salva