From 1e0bc17523690bd5f6c78834df3b7361d12bed45 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 4 Sep 2019 10:37:51 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_meta/tags.ejs | 2 +- layout/_partial/article.ejs | 5 +++-- layout/_partial/meta.ejs | 2 +- layout/_partial/post.ejs | 2 +- layout/_widget/tagcloud.ejs | 2 +- layout/links.ejs | 7 ++++--- layout/tag.ejs | 2 +- 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/_config.yml b/_config.yml index 7f23533..09b4a8f 100755 --- a/_config.yml +++ b/_config.yml @@ -171,7 +171,7 @@ sidebar: url: blog/categories/ rel: nofollow - widget: tagcloud - icon: fas fa-fire + icon: fas fa-tags more: icon: fas fa-expand-arrows-alt url: blog/tags/ diff --git a/layout/_meta/tags.ejs b/layout/_meta/tags.ejs index 31a6a91..b219bbe 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/_partial/article.ejs b/layout/_partial/article.ejs index ae9ed3d..8b0218c 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -8,6 +8,7 @@ <%- post.content %> <% if(post.layout == 'post'){ %> +
<%- partial('meta', {post: post, position: 'footer'}) %> <% } %> <% if(post.prev || post.next){ %> @@ -29,7 +30,7 @@ <% var items = []; post.prev.tags.each(function(item){ - items.push('' + item.name + ''); + items.push(' ' + item.name + ''); }); %>
@@ -56,7 +57,7 @@ <% var items = []; post.next.tags.each(function(item){ - items.push('' + item.name + ''); + items.push(' ' + item.name + ''); }); %>
diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index c9c1dcc..3f2ea21 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -50,7 +50,7 @@ if (post.meta && (post.meta.footer !== undefined && post.meta.footer !== null)) <% } else if (position == 'footer') { %>
<%} %>
<% (group.items||[]).forEach(function(item){ %> @@ -38,7 +39,7 @@ <%} %> <% }) %> <% } %> -

+

<%- page.content %> diff --git a/layout/tag.ejs b/layout/tag.ejs index 7c62c10..f928c1a 100755 --- a/layout/tag.ejs +++ b/layout/tag.ejs @@ -15,7 +15,7 @@ <% site.tags.sort('path').each(function(tags){ %> <% if (tags.posts.length){ %> - + (<%- tags.posts.length %>)