diff --git a/README.md b/README.md index 4b50047..2efeb3a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@
@@ -23,13 +22,15 @@ - **[XPoet's Blog](https://xpoet.cn/)** - **[Keep demo website](https://keep.xpoet.cn/)** -- **[Keep official document](https://keep-docs.xpoet.cn/)** + +> If you want to put a link to your blog in the online preview list, you can give the author a PR. ## :rocket: Installation If you're using Hexo 5.0 or later, the simplest way to install is through npm: ```sh +# recommend $ cd hexo-site $ npm install hexo-theme-keep ``` @@ -64,6 +65,7 @@ It is not recommended to directly modify any files in the «Keep» theme. Becaus Install the latest version throuth npm: ```sh +# recommend $ cd hexo-site $ npm update hexo-theme-keep ``` @@ -75,15 +77,6 @@ $ cd themes/keep $ git pull ``` -_If you modified theme source code:_ - -```sh -$ git add . -$ git stash -$ git pull -$ git stash pop -``` - ## :art: Contributing We welcome you to join the development of «Keep». Please see [contributing guide](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/). @@ -106,9 +99,9 @@ This project exists thanks to all the people who contribute. -> Thanks jsDelivr for providing public CDN service. +> Thanks jsDelivr and UNPKG for providing public CDN service. ## :memo: License -[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet +[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet diff --git a/_config.yml b/_config.yml index 1375280..03824a5 100644 --- a/_config.yml +++ b/_config.yml @@ -135,15 +135,16 @@ post: # If true, show Lv1, Lv2, Lv3... # If false, show custom_label_list - auto: true + auto: true # Option values: true | false # Label array item can be fill one or more - custom_label_list: ["Trainee", "Engineer", "Architect", "CTO", "BOSS"] + custom_label_list: ["Trainee", "Engineer", "Architect"] # --------------------------------------------------------------------------------------- -# Code copy +# Code block tools +# Support code copy and code block collapse # --------------------------------------------------------------------------------------- -code_copy: +code_block_tools: enable: false # Option values: true | false style: default # Option values: default | mac @@ -258,4 +259,4 @@ footer: # Keep version # Please don't modify # --------------------------------------------------------------------------------------- -version: 3.4.6 +version: 3.4.7 diff --git a/README_zh-CN.md b/docs/README_zh-CN.md similarity index 85% rename from README_zh-CN.md rename to docs/README_zh-CN.md index 880c466..25f6c18 100644 --- a/README_zh-CN.md +++ b/docs/README_zh-CN.md @@ -1,10 +1,9 @@ - # hexo-theme-keep @@ -22,13 +21,15 @@ - **[XPoet's Blog](https://xpoet.cn/)** - **[keep 演示网站](https://keep.xpoet.cn/)** -- **[keep 官方文档](https://keep-docs.xpoet.cn/)** + +> 如果你想把自己的博客链接放在在线预览列表里,可以给作者提 PR 。 ## :rocket: 安装 如果你在使用 Hexo 5.0 或更高版本,最简单的安装方式是通过 npm: ```sh +# 推荐 $ cd hexo-site $ npm install hexo-theme-keep ``` @@ -37,7 +38,7 @@ $ npm install hexo-theme-keep ```sh $ cd hexo-site -$ git clone https://github.com/XPoet/hexo-theme-keep themes/keep +$ git clone https://github.com/XPoet/hexo-theme-keep --depth=1 themes/keep ``` 安装完成后,在 Hexo 配置文件中将 `theme` 设置为 `keep`。 @@ -58,11 +59,12 @@ theme: keep ## :dart: 更新 -«Keep» 不定期发布新版本。你可以通过如下命令更新 «Keep»。 +«Keep» 不定期发布新版本,你可以通过如下命令更新 «Keep»。 通过 npm 安装最新版本: ```sh +# 推荐 $ cd hexo-site $ npm update hexo-theme-keep ``` @@ -74,18 +76,9 @@ $ cd themes/keep $ git pull ``` -_如果你修改了主题源码:_ - -```sh -$ git add . -$ git stash -$ git pull -$ git stash pop -``` - ## :art: 贡献 -我们欢迎你加入 «Keep» 的开发,贡献出你的一份力量。请看[Keep 代码贡献指南](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/)。 +我们欢迎你加入 «Keep» 的开发,贡献出你的一份力量。请看 [Keep 代码贡献指南](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/)。 ## :clapper: 贡献者 @@ -105,8 +98,8 @@ $ git stash pop -> jsDelivr 提供了 CDN 服务。 +> jsDelivr 和 UNPKG 提供了 CDN 服务。 ## :memo: 许可 -[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet +[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet diff --git a/README_zh-TW.md b/docs/README_zh-TW.md similarity index 89% rename from README_zh-TW.md rename to docs/README_zh-TW.md index c9fe568..4e4f0e8 100644 --- a/README_zh-TW.md +++ b/docs/README_zh-TW.md @@ -1,7 +1,7 @@ @@ -22,13 +22,15 @@ - **[XPoet's Blog](https://xpoet.cn/)** - **[keep 預覽網頁](https://keep.xpoet.cn/)** -- **[keep 官方文檔](https://keep-docs.xpoet.cn/)** + +> 如果你想把自己的博客鏈接放在線上預覽列表裏,可以給作者提 PR 。 ## :rocket: 安装 如果你在使用 Hexo 5.0 或更高版本,最簡單的安裝方式是透過 npm: ```sh +# 推薦 $ cd hexo-site $ npm install hexo-theme-keep ``` @@ -37,7 +39,7 @@ $ npm install hexo-theme-keep ```sh $ cd hexo-site -$ git clone https://github.com/XPoet/hexo-theme-keep themes/keep +$ git clone https://github.com/XPoet/hexo-theme-keep --depth=1 themes/keep ``` 安裝完成後,在 Hexo 配置文件中將 `theme` 設定為 `keep`。 @@ -63,6 +65,7 @@ theme: keep 透過 npm 安裝最新版本: ```sh +# 推薦 $ cd hexo-site $ npm update hexo-theme-keep ``` @@ -74,15 +77,6 @@ $ cd themes/keep $ git pull ``` -_如果你修改了主題原始碼:_ - -```sh -$ git add . -$ git stash -$ git pull -$ git stash pop -``` - ## :art: 貢獻 我們歡迎你加入 «Keep» 的開發,貢獻出你的一份力量。請看[Keep 原始碼貢獻指南](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/)。 @@ -105,8 +99,8 @@ $ git stash pop -> jsDelivr 提供了 CDN 服務。 +> jsDelivr 和 UNPKG 提供了 CDN 服務。 ## :memo: 許可 -[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet +[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet diff --git a/languages/en.yml b/languages/en.yml index cbba291..70c9784 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -1,3 +1,6 @@ +# ==================================================================== +# English +# ==================================================================== search: Search... prev: Prev next: Next @@ -30,6 +33,24 @@ read_more: Read more wordcount: Words min2read: Mins changelog: Changelog +social_contact: Social contact +github: GitHub +google: Google +apple: Apple +microsoft: Microsoft +weixin: WeChat +qq: QQ +alipay: Alipay +weibo: Weibo +zhihu: Zhihu +twitter: Twitter +facebook: Facebook +email: Email +code_block: + copy: Copy code + copied: Copied + fold: Fold code block + folded: Folded copyright: author: Post author title: Post title diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 30118d8..2c8d536 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -1,3 +1,6 @@ +# ==================================================================== +# 中文简体 +# ==================================================================== search: 搜索... prev: 上一页 next: 下一页 @@ -30,6 +33,24 @@ read_more: 阅读全文 wordcount: 字 min2read: 分钟 changelog: 更新日志 +social_contact: 社交 +github: GitHub +google: 谷歌 +apple: 苹果 +microsoft: 微软 +weixin: 微信 +qq: QQ +alipay: 支付宝 +weibo: 微博 +zhihu: 知乎 +twitter: 推特 +facebook: Facebook +email: Email +code_block: + copy: 复制代码 + copied: 已复制 + fold: 折叠代码块 + folded: 已折叠 copyright: title: 本文标题 author: 本文作者 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index c59ea20..797c373 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -1,3 +1,6 @@ +# ==================================================================== +# 中文繁体 +# ==================================================================== search: 搜尋... prev: 上一頁 next: 下一頁 @@ -30,6 +33,24 @@ read_more: 繼續閱讀... wordcount: 字數 min2read: 分鐘 changelog: 日誌 +social_contact: 社交 +github: GitHub +google: 谷歌 +apple: 蘋果 +microsoft: 微軟 +weixin: 微信 +qq: QQ +alipay: 支付寶 +weibo: 微博 +zhihu: 知乎 +twitter: Twitter +facebook: Facebook +email: Email +code_block: + copy: 復製代碼 + copied: 已復製 + fold: 折疊代碼塊 + folded: 已折疊 copyright: author: 文章作者 title: 文章標題 diff --git a/layout/_partial/first-screen.ejs b/layout/_partial/first-screen.ejs index 05d3759..0881b90 100644 --- a/layout/_partial/first-screen.ejs +++ b/layout/_partial/first-screen.ejs @@ -24,19 +24,19 @@ if (final_description.length > 2) { final_description.length = 2 } diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 0c4ac9a..5fe912a 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -36,7 +36,7 @@ const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme <% if (f_icp) { %>