diff options
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/partials/js.html | 4 | ||||
-rw-r--r-- | static/css/comments.css | 11 | ||||
-rw-r--r-- | static/css/zozo.css | 11 |
4 files changed, 15 insertions, 15 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 diff --git a/static/css/comments.css b/static/css/comments.css index 0d06739..2993e1c 100644 --- a/static/css/comments.css +++ b/static/css/comments.css @@ -1,14 +1,3 @@ -.doc_comments { - font-size: 14px; - color: #383838; - margin-top: 30px; - padding: 35px 0 45px; -} - -.doc_comments .comments_block_title { - color: #000000; -} - .v .vwrap { border-radius: unset; margin-top: 15px; diff --git a/static/css/zozo.css b/static/css/zozo.css index 3c07330..fea9985 100644 --- a/static/css/zozo.css +++ b/static/css/zozo.css @@ -320,6 +320,17 @@ hr { padding: 0; } +.doc_comments { + font-size: 14px; + color: #383838; + margin-top: 30px; + padding: 35px 0 45px; +} + +.doc_comments .comments_block_title { + color: #000000; +} + .footer { clear: both; max-width: 780px; |