Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarson Ip <carsonip@users.noreply.github.com>2019-03-23 14:17:09 +0300
committerGitHub <noreply@github.com>2019-03-23 14:17:09 +0300
commitd9e2bd5022635704b9e7f57ee16e1d8a92461f88 (patch)
treeabfd901e0dbef82bfb8289354d23a5babd7ac576
parentbffa6f347db877d2a395383910cf055a79de9e5a (diff)
parent118bfa2c428d155f8a0d884abcb4a08078e70813 (diff)
Merge pull request #24 from SDavey149/fix-disqus-comments
Fixing disqus shortname config location for newer versions of hugo
-rw-r--r--README.md3
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/article.html2
4 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index ccfa227..8711f5d 100644
--- a/README.md
+++ b/README.md
@@ -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>