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

github.com/g1eny0ung/hugo-theme-dream.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYue Yang <g1enyy0ung@gmail.com>2021-06-05 19:13:20 +0300
committerYue Yang <g1enyy0ung@gmail.com>2021-06-05 19:13:20 +0300
commit5003a7fe14abab983e9810e5b114d5466690436e (patch)
tree81972ee2c3e71b6635777798c96bda01c581187a
parente5ecbe414c6920ec88ecc9c37fc81f4ad2ce283b (diff)
Display disqus more reasonably
-rw-r--r--layouts/partials/back.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/layouts/partials/back.html b/layouts/partials/back.html
index 695f7d2..1e2afe5 100644
--- a/layouts/partials/back.html
+++ b/layouts/partials/back.html
@@ -27,14 +27,11 @@
{{ end }}
</div>
- {{ if findRE "posts/.+" .RelPermalink }}
- {{ else }}
- {{ if and .Site.DisqusShortname }}
+ {{ if and .Site.DisqusShortname .IsHome }}
<div class="sixteen wide mobile eight wide tablet eight wide computer column dream-column">
<article class="ui segment">
{{ partial "disqus.html" (dict "Context" . "Identifier" "/") }}
</article>
</div>
{{ end }}
- {{ end }}
</div>