diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index ae9c811..6d2e49b 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -8,7 +8,7 @@ <% } %> <%- partial('categories',{post:post}) %> @@ -117,6 +117,9 @@ <% if (config.valine){ %> <% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %>

 Valine评论

+
+
文明评论,请勿灌水。为了便于区分,请您在留言时至少填写一下 昵称 啊。
+
diff --git a/layout/_partial/post.ejs b/layout/_partial/post.ejs index fb10407..17c017b 100755 --- a/layout/_partial/post.ejs +++ b/layout/_partial/post.ejs @@ -10,7 +10,7 @@ <%- partial('categories',{post:post}) %>
diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index 21d2dd1..5cd2cb8 100755 --- a/layout/_widget/author.ejs +++ b/layout/_widget/author.ejs @@ -5,17 +5,19 @@
<%} %> -
- <% if (config.widgets.author.title){ %> -

<%= config.widgets.author.title %>

- <% } %> - <% if (config.widgets.author.motto){ %> -
- - <%= config.widgets.author.motto %> -
- <% } %> -
+ <% if (config.widgets.author.title || config.widgets.author.motto){ %> +
+ <% if (config.widgets.author.title){ %> +

<%= config.widgets.author.title %>

+ <% } %> + <% if (config.widgets.author.motto){ %> +
+ + <%= config.widgets.author.motto %> +
+ <% } %> +
+ <% } %> <% if (config.widgets.author.social){ %>
<% (config.social||[]).forEach(function(value){ %> diff --git a/source/less/_article.less b/source/less/_article.less index b699e8c..c3dfd07 100755 --- a/source/less/_article.less +++ b/source/less/_article.less @@ -138,11 +138,14 @@ } h6 { - color: fade(@theme_text_main, 75%); font-size: @fontsize_h6; } - + .subtitle{ + h6 { + color: fade(@theme_text_main, 90%); + } + } figure { figcaption { span { diff --git a/source/less/_widget.less b/source/less/_widget.less index 49c6457..c9f6f24 100755 --- a/source/less/_widget.less +++ b/source/less/_widget.less @@ -104,6 +104,7 @@ } .content{ font-weight: bold; + padding-bottom: 0; @media(max-width: @on_phone){ padding: @gap/2 @gap; } @@ -112,7 +113,7 @@ display: flex; justify-content: center; flex-wrap: wrap; - padding-top: 0; + padding-top: @gap/2; padding-bottom: @gap/2; a { color: fade(@theme_text_main, 70%);