diff --git a/README.md b/README.md index d38bcdefd..ef4d15b58 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ +### 我做出的一些修改 + +fix:reward-btn to square + +fix:social github & weibo icon color + +add:为mobile avatar添加主页跳转链接 + +add:post-copyright + +fix:去掉文章摘要下的more,仅保留文章摘要的展开全文 + +fix:表头与单元格对齐方式不一致 + +add:baidu-push + +add:livere评论系统 + +live preview:[https://liziczh.com](https://liziczh.com) + +以下为原文 + +--- + hexo-theme-yilia ================ @@ -37,15 +61,15 @@ Yilia 是为 [hexo](https://github.com/tommy351/hexo) 2.4+制作的主题。 ## 一、外观 -####**常规** +#### **常规** ![常规](https://cloud.githubusercontent.com/assets/2024949/19027861/92879edc-8967-11e6-8e60-7987b6507c8d.gif) -####**手机** +#### **手机** ![手机](https://cloud.githubusercontent.com/assets/2024949/19027020/1c5b756a-895f-11e6-99bf-ddff9687aee0.gif) -####**ipad横竖屏切换** +#### **ipad横竖屏切换** ![ipad横竖屏切换](https://cloud.githubusercontent.com/assets/2024949/19026392/e74e1816-8957-11e6-8f08-eac9b3c8c036.gif) diff --git a/_config.yml b/_config.yml index cffc6ffb5..8aed33f93 100644 --- a/_config.yml +++ b/_config.yml @@ -51,6 +51,10 @@ alipay: # 微信二维码图片地址 weixin: +# 版权声明 +# 版权声明type设定:0-关闭版权声明; 1-文章对应的md文件里有copyright: true属性,才有版权声明; 2-所有copyright不为false的文章均有版权声明 +copyright_type: 2 + # 目录 # 目录设定:0-不显示目录; 1-文章对应的md文件里有toc:true属性,才有目录; 2-所有文章均显示目录 toc: 1 @@ -62,6 +66,9 @@ toc_empty_wording: '目录,不存在的…' # 是否有快速回到顶部的按钮 top: true +# 百度推送 +baidu_push: true + # Miscellaneous baidu_analytics: '' google_analytics: '' @@ -77,6 +84,9 @@ share_jia: true #不需要使用某项,直接设置值为false,或注释掉 #具体请参考wiki:https://github.com/litten/hexo-theme-yilia/wiki/ +#0、liveRe +livere_uid: false + #1、多说 duoshuo: false diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 3722a8fed..30d6edb2c 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -50,6 +50,26 @@ <% } %> + + <% if (((theme.copyright_type === 2 && !post.copyright) || (theme.copyright_type === 1 && post.copyright)) && !index){ %> +
+ +
+ <% } %> +
<%if(post.top){%> @@ -80,6 +100,15 @@ <% if (!index && post.comments){ %> + + <% if (theme.livere_uid){ %> + <%- partial('post/livere', { + key: post.slug, + title: post.title, + url: config.url+url_for(post.path) + }) %> + <% } %> + <% if (theme.duoshuo){ %> <%- partial('post/duoshuo', { key: post.slug, diff --git a/layout/_partial/baidu-push.ejs b/layout/_partial/baidu-push.ejs new file mode 100644 index 000000000..68b6bba8d --- /dev/null +++ b/layout/_partial/baidu-push.ejs @@ -0,0 +1,16 @@ +<% if (theme.baidu_push){ %> + +<% } %> \ No newline at end of file diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index ed5be7e90..eeb8d9b47 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -40,4 +40,5 @@ <%- partial('google-analytics') %> <%- partial('baidu-analytics') %> + <%- partial('baidu-push') %> diff --git a/layout/_partial/mobile-nav.ejs b/layout/_partial/mobile-nav.ejs index e5c599f8e..c447fde9f 100644 --- a/layout/_partial/mobile-nav.ejs +++ b/layout/_partial/mobile-nav.ejs @@ -7,7 +7,7 @@