diff --git a/README.md b/README.md
index d38bcdefd..40bb7656c 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ hexo-theme-yilia
Yilia 是为 [hexo](https://github.com/tommy351/hexo) 2.4+制作的主题。
崇尚简约优雅,以及极致的性能。 你可以点击 [我的博客](http://litten.me/) 查看效果。
-
+
如果想体验手机浏览效果,可以扫一下二维码:

@@ -34,7 +34,7 @@ Yilia 是为 [hexo](https://github.com/tommy351/hexo) 2.4+制作的主题。
**计划中:**
1. 移动端优化
-
+
## 一、外观
####**常规**
@@ -110,7 +110,7 @@ rss: /atom.xml
# 是否需要修改 root 路径
# 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,
# 请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。
-root:
+root:
# Content
@@ -129,9 +129,9 @@ reward_type: 2
# 打赏wording
reward_wording: '谢谢你请我吃糖果'
# 支付宝二维码图片地址,跟你设置头像的方式一样。比如:/assets/img/alipay.jpg
-alipay:
+alipay:
# 微信二维码图片地址
-weixin:
+weixin:
# 目录
# 目录设定:0-不显示目录; 1-文章对应的md文件里有toc:true属性,才有目录; 2-所有文章均显示目录
@@ -155,7 +155,7 @@ avatar:
#是否开启分享
share_jia: true
-#评论:1、多说;2、网易云跟帖;3、畅言;4、Disqus;5、Gitment
+#评论:1、多说;2、网易云跟帖;3、畅言;4、Disqus;5、Gitment; 6、Gitalk
#不需要使用某项,直接设置值为false,或注释掉
#具体请参考wiki:https://github.com/litten/hexo-theme-yilia/wiki/
@@ -179,6 +179,16 @@ gitment_oauth:
client_id: '' #client ID
client_secret: '' #client secret
+#6、Gitalk
+gitalk:
+ enable: true #用来做启用判断可以不用
+ owner: '' #Github 用户名
+ repo: '' #储存评论issue的github仓库名
+ admin: '' #Github 用户名
+ clientID: '' #Github Application clientID
+ clientSecret: '' #Github Application clientSecret
+ distractionFreeMode: '' #Facebook-like distraction free mode
+
# 样式定制 - 一般不需要修改,除非有很强的定制欲望…
style:
# 头像上面的背景颜色
@@ -211,5 +221,3 @@ friends:
aboutme: 很惭愧
只做了一点微小的工作
谢谢大家
```
-
-
diff --git a/_config.yml b/_config.yml
index cffc6ffb5..c2dd1aea1 100644
--- a/_config.yml
+++ b/_config.yml
@@ -47,9 +47,9 @@ reward_type: 2
# 打赏wording
reward_wording: '谢谢你请我吃糖果'
# 支付宝二维码图片地址,跟你设置头像的方式一样。比如:/assets/img/alipay.jpg
-alipay:
+alipay:
# 微信二维码图片地址
-weixin:
+weixin:
# 目录
# 目录设定:0-不显示目录; 1-文章对应的md文件里有toc:true属性,才有目录; 2-所有文章均显示目录
@@ -73,7 +73,7 @@ avatar:
#是否开启分享
share_jia: true
-#评论:1、多说;2、网易云跟帖;3、畅言;4、Disqus;5、Gitment
+#评论:1、多说;2、网易云跟帖;3、畅言;4、Disqus;5、Gitment; 6、Gitalk
#不需要使用某项,直接设置值为false,或注释掉
#具体请参考wiki:https://github.com/litten/hexo-theme-yilia/wiki/
@@ -97,6 +97,16 @@ gitment_oauth:
client_id: '' #client ID
client_secret: '' #client secret
+#6、Gitalk
+gitalk:
+ enable: true #用来做启用判断可以不用
+ owner: '' #Github 用户名
+ repo: '' #储存评论issue的github仓库名
+ admin: '' #Github 用户名
+ clientID: '' #Github Application clientID
+ clientSecret: '' #Github Application clientSecret
+ distractionFreeMode: false #Facebook-like distraction free mode
+
# 样式定制 - 一般不需要修改,除非有很强的定制欲望…
style:
# 头像上面的背景颜色
@@ -127,4 +137,4 @@ friends:
友情链接5: http://localhost:4000/
友情链接6: http://localhost:4000/
-aboutme: 很惭愧
只做了一点微小的工作
谢谢大家
\ No newline at end of file
+aboutme: 很惭愧
只做了一点微小的工作
谢谢大家
diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs
index 3722a8fed..436c7ae99 100644
--- a/layout/_partial/article.ejs
+++ b/layout/_partial/article.ejs
@@ -87,7 +87,7 @@
url: config.url+url_for(post.path)
}) %>
<% } %>
-
+
<% if (theme.wangyiyun){ %>
<%- partial('post/wangyiyun', {
key: post.slug,
@@ -129,4 +129,13 @@
url: config.url+url_for(post.path)
}) %>
<% } %>
+
+ <% if (theme.gitalk.owner && theme.gitalk.repo && theme.gitalk.enable && theme.gitalk.clientID && theme.gitalk.clientSecret){ %>
+ <%- partial('post/gitalk', {
+ key: post.slug,
+ title: post.title,
+ url: config.url+url_for(post.path)
+ }) %>
+ <% } %>
+
<% } %>
diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs
index 8d489d17b..545690f82 100644
--- a/layout/_partial/footer.ejs
+++ b/layout/_partial/footer.ejs
@@ -5,8 +5,20 @@
© <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
-
\ No newline at end of file
+
+
+
+ 本站总访问量次
+
+
+ 总访客数人次
+
+
+ 本文总阅读量次
+
+
+
diff --git a/layout/_partial/post/gitalk.ejs b/layout/_partial/post/gitalk.ejs
new file mode 100644
index 000000000..15e41c749
--- /dev/null
+++ b/layout/_partial/post/gitalk.ejs
@@ -0,0 +1,15 @@
+
+
+
+
diff --git a/layout/_partial/post/share.ejs b/layout/_partial/post/share.ejs
index 6153d48ed..ef47eab0a 100644
--- a/layout/_partial/post/share.ejs
+++ b/layout/_partial/post/share.ejs
@@ -46,8 +46,8 @@
扫一扫,分享到微信
-
 : '//pan.baidu.com/share/qrcode?url=' + sUrl %>)
+
-
\ No newline at end of file
+
diff --git a/source-src/css/comment.scss b/source-src/css/comment.scss
index 4b5a8f544..c5e844061 100644
--- a/source-src/css/comment.scss
+++ b/source-src/css/comment.scss
@@ -1,4 +1,4 @@
-#disqus_thread, .duoshuo, .cloud-tie-wrapper, #SOHUCS, #gitment-ctn {
+#disqus_thread, .duoshuo, .cloud-tie-wrapper, #SOHUCS, #gitment-ctn, #gitalk-container {
padding: 0 30px !important;
min-height: 20px;
}
diff --git a/source-src/css/fonts/iconfont.svg b/source-src/css/fonts/iconfont.svg
index 59c4f5bfc..c65d9e4bf 100644
--- a/source-src/css/fonts/iconfont.svg
+++ b/source-src/css/fonts/iconfont.svg
@@ -1,13 +1,13 @@
-
-