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:
authorScott Davey <me@scottd.io>2019-02-10 22:43:29 +0300
committerScott Davey <me@scottd.io>2019-02-10 22:43:29 +0300
commit118bfa2c428d155f8a0d884abcb4a08078e70813 (patch)
tree95214b71b1b318673d11028eb492b8d1d0ca7f04
parentc1e3d1baad340d0551cbf20ff0fcb91f9fd8de30 (diff)
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 513804e..0f35941 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 8e550f2..0fe9b0f 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>