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

github.com/varkai/hugo-theme-zozo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarkai <i@varkai.com>2020-06-28 11:43:30 +0300
committervarkai <i@varkai.com>2020-06-28 11:43:30 +0300
commit700474e64e7422b01650f22844f272e0c72f6da4 (patch)
tree941c09defde9ee9ce8792e08c9ab373d8578aa0e /layouts
parent5d7491770dc71f49dd7865f0a3b54e1d0875718e (diff)
修复disqus评论样式
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/js.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2233552..638aa87 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -27,9 +27,11 @@
{{ end }}
</div>
</div>
- <!-- Valine 评论系统 -->
+ <!-- 评论系统 -->
{{ if .Site.Params.valine.enable }}
{{ partial "comments.html" . }}
+ {{ else }}
+ <div class="doc_comments">{{ template "_internal/disqus.html" . }}</div>
{{ end }}
</div>
</div>
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index b3772ff..3b370cf 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -7,6 +7,4 @@
{{ partial "mathjax.html" . }}
{{ end }}
-{{ template "_internal/google_analytics_async.html" . }}
-
-{{ template "_internal/disqus.html" . }} \ No newline at end of file
+{{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file