Skip to content

Commit

Permalink
Fixing disqus shortname config location for newer versions of hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Davey committed Feb 10, 2019
1 parent c1e3d1b commit 118bfa2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ paginate = 10

### Disqus
```
[params]
disqusShortname = "xxxxxx"
disqusShortname = "xxxxxx"
```

### Google Analytics
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 itemprop="name"><a class="article-title" href="{{ .RelPermalink }}">{{ .Titl
</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>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="article-title" itemprop="name">{{ .Title }}</h1>
</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>
Expand Down

0 comments on commit 118bfa2

Please sign in to comment.