diff options
author | Carson Ip <carsonip@users.noreply.github.com> | 2019-03-23 14:17:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-23 14:17:09 +0300 |
commit | d9e2bd5022635704b9e7f57ee16e1d8a92461f88 (patch) | |
tree | abfd901e0dbef82bfb8289354d23a5babd7ac576 | |
parent | bffa6f347db877d2a395383910cf055a79de9e5a (diff) | |
parent | 118bfa2c428d155f8a0d884abcb4a08078e70813 (diff) |
Merge pull request #24 from SDavey149/fix-disqus-comments
Fixing disqus shortname config location for newer versions of hugo
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/article.html | 2 |
4 files changed, 4 insertions, 5 deletions
@@ -53,8 +53,7 @@ paginate = 10 ### Disqus ``` -[params] - disqusShortname = "xxxxxx" +disqusShortname = "xxxxxx" ``` ### Google Analytics diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e770af8..8dc1ad0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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> diff --git a/layouts/index.html b/layouts/index.html index 90b2b63..f86fee9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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> diff --git a/layouts/partials/article.html b/layouts/partials/article.html index 39674f1..20989c5 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -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> |