Fix disqus

This commit is contained in:
Carson Ip
2017-02-19 11:06:53 +01:00
parent 57448c2dd3
commit af7f25fef9
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
{{ partial "header.html" . }}
<section id="main" class="outer">
{{ partial "article.html" . }}
{{ if not .Params.nocomment }}
{{ if and (not .Params.nocomment) .Site.Params.disqusShortname }}
{{ template "_internal/disqus.html" . }}
{{ end }}
</section>

View File

@@ -29,7 +29,7 @@
</div>
</div>
{{ end }}
{{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
{{ if .Site.Params.disqusShortname }}
<div class="article-comment-link-wrap">
<a href="{{ .RelPermalink }}#ds-thread" class="article-comment-link">Comments</a>
</div>

View File

@@ -23,7 +23,7 @@
</div>
</div>
{{ end }}
{{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
{{ if .Site.Params.disqusShortname }}
<div class="article-comment-link-wrap">
<a href="{{ .RelPermalink }}#ds-thread" class="article-comment-link">Comments</a>
</div>