diff --git a/README.md b/README.md index a98b75c0..d33b839f 100644 --- a/README.md +++ b/README.md @@ -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 升级前请仔细查看更改内容,如非必要可不升级。 diff --git a/_config.yml b/_config.yml index 7d88e97e..a9eda54b 100644 --- a/_config.yml +++ b/_config.yml @@ -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 @@ -37,8 +41,6 @@ brand: /img/brand.jpg # favicon favicon: /favicon.ico -# email -email: 634206017@qq.com # 设置 Android L Chrome 浏览器状态栏颜色 color: '#3F51B5' @@ -63,7 +65,7 @@ share: true # 是否开启打赏,关闭 reward: false reward: - title: 谢谢大爷~ + title: 感谢打赏 wechat: /img/wechat.jpg #微信,关闭设为 false alipay: /img/alipay.jpg #支付宝,关闭设为 false @@ -79,7 +81,7 @@ toc: list_number: true # 是否显示数字排序 # 文章页留言内容,hexo中所有变量及辅助函数等均可调用,具体请查阅 hexo.io -postMessage: 这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:<%- page.permalink.replace(/index\.html$/, '') %> +postMessage: 本文章遵循署名-非商业性使用 4.0 国际 (CC BY-NC 4.0) 共享协议, 如果觉得对你有帮助,可以打赏我一杯咖啡☕ # 站长统计,如要开启,输入CNZZ站点id,如 cnzz: 1255152447 cnzz: false @@ -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: @@ -143,7 +145,7 @@ canonical: false since_year: 2015 # 用户页面中作者相关的描述性文字,如不需要设为 false -about: 用户页面中作者相关的描述性文字,如不需要设为 false +about: false # “不蒜子”访问量统计,详见 http://ibruce.info/2015/04/04/busuanzi/ visit_counter: @@ -152,8 +154,8 @@ visit_counter: # 动态定义title title_change: - normal: (つェ⊂)咦!又好了! - leave: 死鬼去哪里了! + normal: 持志如心痛 + leave: 春起之苗, 不见其增, 日有所长 # 设置为 true 发布后将使用 unpkg cdn 最新的主题样式 # 如果想让你的自定义样式生效,把此项设为 false diff --git a/languages/ja.yml b/languages/ja.yml deleted file mode 100644 index db3a4526..00000000 --- a/languages/ja.yml +++ /dev/null @@ -1,13 +0,0 @@ -global: - search_input_hint: "検索" - -post: - continue_reading: "続きを読む…" - last_updated: "最終更新:" - -footer: - license: 'このブログの内容物はクリエイティブ・コモンズ 表示 - 非営利 - 継承 4.0 国際ライセンスの下に提供されています' - -tag: - all: "全て" - tags: "タグ" diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml deleted file mode 100644 index b3ffe908..00000000 --- a/languages/zh-TW.yml +++ /dev/null @@ -1,13 +0,0 @@ -global: - search_input_hint: "搜尋" - -post: - continue_reading: "閱讀全文…" - last_updated: "最後更新時間:" - -footer: - license: '本部落格係採用創用 CC 姓名標示 4.0 國際 授權條款授權' - -tag: - all: "全部" - tags: "標籤" diff --git a/layout/_partial/plugins/gitment.ejs b/layout/_partial/plugins/gitment.ejs index 4abb2b8e..ae832594 100755 --- a/layout/_partial/plugins/gitment.ejs +++ b/layout/_partial/plugins/gitment.ejs @@ -2,9 +2,10 @@
- +