Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ Material Design 风格的Hexo主题,基于 Hexo 3.0+ 制作。 [Preview](http:

[文档 | Document](https://github.com/yscoder/hexo-theme-indigo/wiki)

## 修改gitment评论相关内容

因gitment项目请求token的服务挂了,因此需要自行请求github token,需要修改`layout/_partial/plugins/gitment.ejs`中的内容

暂时使用别人搭建的。[https://www.wenjunjiang.win/js/gitment.js](https://www.wenjunjiang.win/js/gitment.js)

具体可参考https://github.com/imsun/gitment/issues/170

## ChangeLog

升级前请仔细查看更改内容,如非必要可不升级。
Expand Down
46 changes: 24 additions & 22 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ menu:
text: 主页
url: /
archives:
text: 归档
url: /archives
tags:
text: 标签
url: /tags
th-list:
text: Categories
url: /categories
#th-list:
# text: Categories
# url: /categories
github:
url: https://github.com/yscoder
url: https://github.com/smarxpan
target: _blank
weibo:
url: http://www.weibo.com/ysweb
#weibo:
# url: http://www.weibo.com/ysweb
# target: _blank
jianshu:
url: https://www.jianshu.com/u/dfa8a1482905
target: _blank
link:
text: 测试
url: /custom
text: 简书

language: zh-CN
# 你的头像url
avatar: /img/avatar.jpg
# avatar link
Expand All @@ -37,8 +41,6 @@ brand: /img/brand.jpg
# favicon
favicon: /favicon.ico

# email
email: 634206017@qq.com

# 设置 Android L Chrome 浏览器状态栏颜色
color: '#3F51B5'
Expand All @@ -63,7 +65,7 @@ share: true

# 是否开启打赏,关闭 reward: false
reward:
title: 谢谢大爷~
title: 感谢打赏
wechat: /img/wechat.jpg #微信,关闭设为 false
alipay: /img/alipay.jpg #支付宝,关闭设为 false

Expand All @@ -79,7 +81,7 @@ toc:
list_number: true # 是否显示数字排序

# 文章页留言内容,hexo中所有变量及辅助函数等均可调用,具体请查阅 hexo.io
postMessage: 这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:<a href="<%- url_for(page.path).replace(/index\.html$/, '') %>" target="_blank" rel="external"><%- page.permalink.replace(/index\.html$/, '') %></a>
postMessage: 本文章遵循署名-非商业性使用 4.0 国际 (<a href='https://creativecommons.org/licenses/by-nc/4.0/deed.zh'>CC BY-NC 4.0</a>) 共享协议, 如果觉得对你有帮助,可以打赏我一杯咖啡☕

# 站长统计,如要开启,输入CNZZ站点id,如 cnzz: 1255152447
cnzz: false
Expand Down Expand Up @@ -109,12 +111,12 @@ disqus_shortname: false
# 是否开启友言评论, 填写友言用户id
uyan_uid: false
# 是否使用 gitment,https://github.com/imsun/gitment
gitment: false
# gitment:
# owner:
# repo:
# client_id:
# client_secret:
# gitment: false
gitment:
owner: smarxpan
repo: smarxpan.github.io
client_id: 35ae1cfc4ef06f4bc223
client_secret: cd0792c674f8e6ae0321d20b69a76086c477c1da

# Valine Comment system. https://valine.js.org
valine:
Expand Down Expand Up @@ -143,7 +145,7 @@ canonical: false
since_year: 2015

# 用户页面中作者相关的描述性文字,如不需要设为 false
about: 用户页面中作者相关的描述性文字,如不需要设为 false
about: false

# “不蒜子”访问量统计,详见 http://ibruce.info/2015/04/04/busuanzi/
visit_counter:
Expand All @@ -152,8 +154,8 @@ visit_counter:

# 动态定义title
title_change:
normal: (つェ⊂)咦!又好了!
leave: 死鬼去哪里了!
normal: 持志如心痛
leave: 春起之苗, 不见其增, 日有所长

# 设置为 true 发布后将使用 unpkg cdn 最新的主题样式
# 如果想让你的自定义样式生效,把此项设为 false
Expand Down
13 changes: 0 additions & 13 deletions languages/ja.yml

This file was deleted.

13 changes: 0 additions & 13 deletions languages/zh-TW.yml

This file was deleted.

3 changes: 2 additions & 1 deletion layout/_partial/plugins/gitment.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<section class="comments" id="comments">
<div id="gitment_thread"></div>
<link rel="stylesheet" href="//unpkg.com/gitment/style/default.css">
<script src="//unpkg.com/gitment/dist/gitment.browser.js"></script>
<script src="https://www.wenjunjiang.win/js/gitment.js"></script>
<script>
var gitment = new Gitment({
id: '<%= page.date %>',
owner: '<%- theme.gitment.owner %>',
repo: '<%- theme.gitment.repo %>',
oauth: {
Expand Down
Binary file modified source/img/alipay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/wechat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.