Fixing disqus shortname config location for newer versions of hugo

This commit is contained in:
Scott Davey
2019-02-10 19:43:29 +00:00
parent c1e3d1baad
commit 118bfa2c42
4 changed files with 4 additions and 5 deletions

View File

@@ -53,8 +53,7 @@ paginate = 10
### Disqus
```
[params]
disqusShortname = "xxxxxx"
disqusShortname = "xxxxxx"
```
### Google Analytics

View File

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

View File

@@ -29,7 +29,7 @@
</div>
</div>
{{ end }}
{{ if .Site.Params.disqusShortname }}
{{ if .Site.DisqusShortname }}
<div class="article-comment-link-wrap">
<a href="{{ .RelPermalink }}#disqus_thread" class="article-comment-link">Comments</a>
</div>

View File

@@ -22,7 +22,7 @@
</div>
</div>
{{ end }}
{{ if .Site.Params.disqusShortname }}
{{ if .Site.DisqusShortname }}
<div class="article-comment-link-wrap">
<a href="{{ .RelPermalink }}#disqus_thread" class="article-comment-link">Comments</a>
</div>