diff options
author | vvveiii <cntrump@gmail.com> | 2019-12-09 15:16:15 +0300 |
---|---|---|
committer | vvveiii <cntrump@gmail.com> | 2019-12-09 15:16:15 +0300 |
commit | c8687abde510d12b711d29deb45f686c8f9855f5 (patch) | |
tree | 6a98f1c5ea19cb1a6f5768ecbd3e8d2e78ced896 | |
parent | 9b8f000fd7ec7479433e879643c52963839fd25b (diff) |
update comments stylev1.5.0
-rw-r--r-- | assets/css/core.css | 6 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/assets/css/core.css b/assets/css/core.css index aa97adf..a9fa2d6 100644 --- a/assets/css/core.css +++ b/assets/css/core.css @@ -355,6 +355,12 @@ del { opacity: 0.5; } text-decoration: none; } +.article-discussion { + border-top: 2px solid #e1e4e8; + margin-top: 20px; + padding-top: 20px; +} + .pagination { display: block; text-align: center; diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f33b912..4e3e0b9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,8 +14,8 @@ {{ .Content }} </article> - {{ if .Params.comments }} - <div> + {{ if and .Params.comments (gt (len .Site.DisqusShortname) 0) }} + <div class="article-discussion"> {{ template "_internal/disqus.html" . }} </div> {{ end }} |