From 8200dd8f7964db6dc5a40294903eafdda22c2e30 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 10 Oct 2018 21:07:51 +0800 Subject: [PATCH] update --- layout/_partial/article.ejs | 5 ++++- layout/_partial/post.ejs | 2 +- layout/_widget/author.ejs | 24 +++++++++++++----------- source/less/_article.less | 7 +++++-- source/less/_widget.less | 3 ++- 5 files changed, 25 insertions(+), 16 deletions(-) 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){ %>