From a4fad8842260ccb167dd8416a8824cafd97c58d9 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 15 Aug 2018 09:48:08 +0800 Subject: [PATCH] update icon & sidebar --- _config.yml | 18 ++++++++++-------- layout/_partial/article.ejs | 2 +- layout/_partial/post/recommended_posts.ejs | 2 +- layout/_widget/categories.ejs | 2 +- layout/_widget/links.ejs | 6 +++--- layout/_widget/music.ejs | 2 +- layout/_widget/socials.ejs | 4 ++-- layout/_widget/tagcloud.ejs | 2 +- source/less/_archive.less | 10 +++++++--- source/less/_article.less | 15 +++++---------- 10 files changed, 32 insertions(+), 31 deletions(-) diff --git a/_config.yml b/_config.yml index 6ab0e59..976c33f 100755 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,8 @@ widgets: - categories # 显示分类 - tagcloud # 显示tags # - socials # 显示自己的社交信息 - # - music # 显示自己的网易云歌单 + - music # 显示自己的网易云歌单 + - links # 显示友链 # 右边的联系信息小窗口 contacts: @@ -41,6 +42,13 @@ contacts: # badget: "@xaoxuu" # url: https://www.twitter.com/xaoxuu +# 侧边栏的友链 +links: +- name: Jarvis Wu + url: https://changwenwu.github.io +- name: Justin Yang + url: http://lifestyle1.cn/ + # 页面底部的社交信息 social: @@ -60,7 +68,7 @@ social: # 推荐文章 npm install hexo-recommended-posts --save recommended_posts: - enabled: true + enabled: true # Search search: @@ -80,14 +88,8 @@ search: # baidu baidu_api_id: -# friends link -links: - - # Less less: compress: true - - diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index c13344b..ff1aea7 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -71,7 +71,7 @@ <% if (post.comments) { %> <% if (config.livere_shortname || config.valine){ %> -

评论

+

  评论

<% } %> <% if (config.livere_shortname){ %>
diff --git a/layout/_partial/post/recommended_posts.ejs b/layout/_partial/post/recommended_posts.ejs index 9561fbf..dbd6ff1 100644 --- a/layout/_partial/post/recommended_posts.ejs +++ b/layout/_partial/post/recommended_posts.ejs @@ -1,7 +1,7 @@ <% var post_list = recommended_posts(page, site) %> <% if(post_list.length > 0) { %>