From 22e81dfc6b2f8533a736a6f15f8bba5e533c8859 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 4 Apr 2019 22:51:16 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_meta/author.ejs | 8 +++++-- layout/_meta/categories.ejs | 2 +- layout/_meta/counter.ejs | 8 ++++--- layout/_meta/date.ejs | 2 +- layout/_meta/tags.ejs | 2 +- layout/_meta/topping.ejs | 2 +- layout/_meta/updated.ejs | 2 +- layout/_third-party/share.ejs | 1 - layout/_widget/related_posts.ejs | 2 +- source/less/_main.less | 37 ++++++++++++++++++++++++++------ 11 files changed, 48 insertions(+), 20 deletions(-) diff --git a/_config.yml b/_config.yml index 4527242..52a2b5c 100755 --- a/_config.yml +++ b/_config.yml @@ -42,7 +42,7 @@ avatar_placeholder: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avat # 日期格式 http://momentjs.com/docs/ date_format: 'YYYY-MM-DD' # 文章发布日期的格式 -updated_date_format: 'llll' # 文章更新日期的格式 +updated_date_format: 'lll' # 文章更新日期的格式 ############################### 自定义 ############################### diff --git a/layout/_meta/author.ejs b/layout/_meta/author.ejs index 0ed69fc..b6351d7 100755 --- a/layout/_meta/author.ejs +++ b/layout/_meta/author.ejs @@ -1,8 +1,12 @@ <% if(post.author || config.author){ %>
- - <%- post.author || config.author %> + <% if (config.avatar) { %> + + <% } else { %> + + <% } %> +

<%- post.author || config.author %>

<% } %> diff --git a/layout/_meta/categories.ejs b/layout/_meta/categories.ejs index 144076f..a73aaf7 100755 --- a/layout/_meta/categories.ejs +++ b/layout/_meta/categories.ejs @@ -10,7 +10,7 @@
- <%- cats.join(' / ') %> +

<%- cats.join(' / ') %>

<% } %> diff --git a/layout/_meta/counter.ejs b/layout/_meta/counter.ejs index d023ba7..59579ec 100644 --- a/layout/_meta/counter.ejs +++ b/layout/_meta/counter.ejs @@ -3,9 +3,11 @@
- - - +

+ + + +

<% } %> diff --git a/layout/_meta/date.ejs b/layout/_meta/date.ejs index 1ebb93a..097bab9 100755 --- a/layout/_meta/date.ejs +++ b/layout/_meta/date.ejs @@ -1,6 +1,6 @@
- <%= date(post.date, theme.date_format) %> +

<%- date(post.date, theme.date_format) %>

diff --git a/layout/_meta/tags.ejs b/layout/_meta/tags.ejs index 68ddf58..31a6a91 100644 --- a/layout/_meta/tags.ejs +++ b/layout/_meta/tags.ejs @@ -2,7 +2,7 @@ <% var items = []; post.tags.each(function(item){ - items.push('
 ' + item.name + '
'); + items.push('
 

' + item.name + '

'); }); %> <%- items.join(' ') %> diff --git a/layout/_meta/topping.ejs b/layout/_meta/topping.ejs index e4b36c3..b3b9b3d 100644 --- a/layout/_meta/topping.ejs +++ b/layout/_meta/topping.ejs @@ -2,7 +2,7 @@
- <%- post.top != true ? post.top : __('post.top') %> +

<%- post.top != true ? post.top : __('post.top') %>

<% } %> diff --git a/layout/_meta/updated.ejs b/layout/_meta/updated.ejs index 12559e6..a1b80d3 100644 --- a/layout/_meta/updated.ejs +++ b/layout/_meta/updated.ejs @@ -1,6 +1,6 @@
- <%- __('post.updated') + ' ' + date(post.updated, theme.updated_date_format) %> +

<%- __('post.updated') + ' ' + date(post.updated, theme.updated_date_format) %>

diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index 7afb3b8..4797143 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -1,5 +1,4 @@
-