From c8687abde510d12b711d29deb45f686c8f9855f5 Mon Sep 17 00:00:00 2001 From: vvveiii Date: Mon, 9 Dec 2019 20:16:15 +0800 Subject: update comments style --- assets/css/core.css | 6 ++++++ 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 }} - {{ if .Params.comments }} -
+ {{ if and .Params.comments (gt (len .Site.DisqusShortname) 0) }} +
{{ template "_internal/disqus.html" . }}
{{ end }} -- cgit v1.2.3