From 0aab24bb50070f2605ba8c967208b7fc997f0922 Mon Sep 17 00:00:00 2001 From: fairycn <74580422+fairycn@users.noreply.github.com> Date: Fri, 3 Mar 2023 14:30:11 +0800 Subject: [PATCH 1/5] Simplified Chinese Support (#186) --- README-jp.md | 5 +- README-pt.md | 5 +- README-zh.md | 148 ++++++++++++++ README.md | 5 +- _data/conf/main.yml | 2 +- _data/content/projects/zh.yml | 232 ++++++++++++++++++++++ _data/lang/zh.yml | 237 +++++++++++++++++++++++ _data/owner/zh.yml | 93 +++++++++ zh/404.md | 19 ++ zh/_posts/2021-08-10-Test-page1.markdown | 52 +++++ zh/_posts/2021-08-11-Test-page2.markdown | 52 +++++ zh/_posts/2021-09-12-Test-page3.markdown | 52 +++++ zh/_posts/2021-09-13-Test-page4.markdown | 52 +++++ zh/_posts/2021-10-14-Test-page5.markdown | 52 +++++ zh/_posts/2021-10-15-Test-page6.markdown | 52 +++++ zh/index.md | 45 +++++ zh/privacy-policy.md | 46 +++++ zh/query/post-query.json | 7 + zh/query/search.json | 7 + zh/tabs/about.md | 44 +++++ zh/tabs/archive.md | 35 ++++ zh/tabs/blog/index.html | 35 ++++ zh/tabs/links.md | 94 +++++++++ zh/tabs/projects.md | 35 ++++ 24 files changed, 1399 insertions(+), 7 deletions(-) create mode 100644 README-zh.md create mode 100644 _data/content/projects/zh.yml create mode 100644 _data/lang/zh.yml create mode 100644 _data/owner/zh.yml create mode 100644 zh/404.md create mode 100644 zh/_posts/2021-08-10-Test-page1.markdown create mode 100644 zh/_posts/2021-08-11-Test-page2.markdown create mode 100644 zh/_posts/2021-09-12-Test-page3.markdown create mode 100644 zh/_posts/2021-09-13-Test-page4.markdown create mode 100644 zh/_posts/2021-10-14-Test-page5.markdown create mode 100644 zh/_posts/2021-10-15-Test-page6.markdown create mode 100644 zh/index.md create mode 100644 zh/privacy-policy.md create mode 100644 zh/query/post-query.json create mode 100644 zh/query/search.json create mode 100644 zh/tabs/about.md create mode 100644 zh/tabs/archive.md create mode 100644 zh/tabs/blog/index.html create mode 100644 zh/tabs/links.md create mode 100644 zh/tabs/projects.md diff --git a/README-jp.md b/README-jp.md index 7fedadcce..b0bc128f3 100755 --- a/README-jp.md +++ b/README-jp.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Mr. Green Jekyll テーマ @@ -34,7 +34,7 @@ ### Features - 多言語Webサイト - - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語 + - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語、中国語 - おすすめの言語提供機能 - アイコン有効無効オプション付き自動ナビゲーションボタン追加機能 - `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` 等々のレイアウト @@ -120,6 +120,7 @@ YouTubeの[Mr. Green テーマチュートリアルのプレイリスト](https: - ブラジルポルトガル語の翻訳 [Vitor DallAcqua](https://github.com/fandangos)。 - フランス語の翻訳修正 [Jean-Philippe Morissette](https://github.com/JPMorissette)。 +- 中国語の翻訳 [fairycn](https://github.com/fairycn)。 ### License diff --git a/README-pt.md b/README-pt.md index b422d8298..2061d164d 100644 --- a/README-pt.md +++ b/README-pt.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Tema Mr. Green Jekyll @@ -34,7 +34,7 @@ Eu estava criando meu wbesite e pensei em fazê-lo como um modelo que eu poderia ### Recursos disponíveis - Website para vários idiomas. - - Inglês (padrão), Japonês, Português do Brasil, Francês + - Inglês (padrão), Japonês, Português do Brasil, Francês, Chinês - Recomendação de idioma - Auto navegação com possibilidade de habilitar e desabilitar os ícones. - Layout para `Principal`, `Sobre`, `Arquivos`, `Lista-de-Posts`, `Links`, `Projetos` e mais @@ -120,6 +120,7 @@ Obrigado por suas contribuições! - Tradução para o português brasileiro por [Vitor DallAcqua](https://github.com/fandangos). - Correções da tradução para o francês por [Jean-Philippe Morissette](https://github.com/JPMorissette). +- Tradução para o chinês por [fairycn](https://github.com/fairycn). ### Licença diff --git a/README-zh.md b/README-zh.md new file mode 100644 index 000000000..ca8d540d0 --- /dev/null +++ b/README-zh.md @@ -0,0 +1,148 @@ +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [简体中文] + +## Mr. Green Jekyll 主题 + + + +[GitHub issues](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/issues) +[GitHub forks](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub stars](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt) +[Support me on GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") +[Support me on Patreon](https://patreon.com/MrGreensWorkshop "Support me on Patreon") +[Tip me via Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip me via Ko-fi") + +--- + +
+ screen_mock +

+ 点击这里查看实时演示 +
+ + +### 介绍 + + + +[Mr. Green](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) 是一个多语言主题,由 [Jekyll](https://jekyllrb.com/) 并完全兼容于 [GitHub Pages](https://pages.github.com/). + + + +我打算做我的网站,并认为如果我把它做为一个模板,我可以与开源社区分享它。这就是为什么我决定把它建成一个主题。我很努力地工作,使之成为可能,所以请考虑 [supporting my work](#you-can-support-my-work). 谢谢。 + +### 特色 + +- 多语言网站 + - English (default), Japanese, Brazilian Portuguese +- 推荐的语言建议功能 +- 带图标的自动导航按钮添加器 启用禁用选项 +- “首页”、“关于”、“归档”、“文章列表”、“链接”、“项目”等的布局 +- 颜色方案的切换选项(深色) +- 自动联系选项添加器 +- 自动引用图片(不需要为图片添加完整的路径,只需在前面添加`:`即可)。 +- 图像 lazy 加载器, 图像浏览器 +- 具有创意共享许可的酷炫页脚 +- 帖子的可移动目录模式框 +- 文章共享选项 +- 按类别或标签列出的帖子 +- 帖子的评论 + - [Giscus](https://giscus.app) + - [Disqus](https://disqus.com) +- 可选择编号分页或滚动加载类型 +- 网站导航功能 +- 搜索引擎优化(SEO) + - [Schema Markup](https://schema.org) + - [Open Graph](https://ogp.me/) + - [Twitter](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary) +- 分析(Google Analytics) +- Cookie许可功能 +- 联系表格功能(谷歌表格)。 +- 网站搜索功能 +- 代码压缩,占用空间小 (`HTML` `JS` `SCSS`) +- 移动应用程序支持 +- 对移动设备友好(在安卓和IOS系统上测试) +- 为开发者提供了良好的文件夹结构(在Chrome、Safari、FireFox上测试)。 + +### 安装 + +#### Github页面 + +1. [Fork the repo](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork). +1. Edit \_config.yml and change `url` like below and push changes. + + ```yaml + url: "https://your_github_user_name.github.io" + ``` + +1. 将 repo 的名称重命名为 `your_github_user_name.github.io` +1. 在 repo 上的标签检查部署状态 `Actions` . +1. 当它变成绿色时,您的站点就启动并运行了 `https://your_github_user_name.github.io` + +#### Local build + +1. [Install Jekyll](https://jekyllrb.com/docs/installation/) to your OS +1. Clone or [download](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest) the repo, in command prompt go to the folder run `bundle install` command +1. 构建使用 `bundle exec jekyll serve --watch --host 0.0.0.0 --safe` command + - with `--host 0.0.0.0` 参数您可以从同一个局域网访问web服务器. + - with `--safe` 参数你可以确保没有第三方插件添加。(用于Github页面开发) +1. 您的页面将在 `0.0.0.0:4000/` 地址. + +### Documentation + +查看详情 [Mr. Green theme tutorials playlist](https://www.youtube.com/playlist?list=PLAymxPbYHgl-fFy5can7uZBMJtFWVcphD) 在 YouTube + +### 功劳 + +我想感谢这些项目,它们给了我一个建立网站的机会。 + +- [Jekyll](https://jekyllrb.com/) is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. It is a wonderful project which is maintained by volunteers. + +- [GitHub Pages](https://pages.github.com/) Hosted directly from your GitHub repository. Just push the changes and the site will be automatically generated. + +在我从事这个项目时,我发现一些有用的网站。 [links page](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/tabs/links.html) + +### 你可以支持我的工作 + +从零开始创建项目需要大量的时间。如果你考虑支持我,使我能够继续这样的项目,为大家创造新的内容,我将非常感激。 + +- You can be one of my [GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") (monthly or one time) +- You can be one of my [Patreons](https://patreon.com/MrGreensWorkshop "Be my Patron") (monthly) +- You can tip me via [Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip Me via Ko-fi") (one time) + +### 贡献 + +欢迎拉取Requests。请检查Issues和Request模板中的说明。 + +### 贡献者 + +感谢你们的贡献! + +- Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). + +### License + +正如它所说,在 [MIT license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt), 你可以在任何地方使用这个主题,只要你包括许可证和版权声明。 + +`Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com` + +请添加链接到我的页面或在页脚留下 "Pwrd by Mr. Green" + +谢谢你! + +### Other Licenses + +Mr. Green Jekyll 主题包含了下面写的库。没有这些库,我不可能使这个项目成为可能。 + +| Library | file | +| :----------------------------------- | ---- | +| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0), Copyright [OpenJS Foundation](https://openjsf.org) and other contributors. jQuery is distributed under the terms of the MIT License. | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) | +| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), Copyright (c) 2011-2016 Twitter, Inc. Bootstrap is distributed under the terms of the MIT License. | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) | +| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), Copyright (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap Table of Contents is distributed under the terms of the MIT License. | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) | +| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), Copyright (c) 2017 Dave Gandy. The Font Awesome font is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL). Font Awesome CSS, LESS, and Sass files are distributed under the terms of the [MIT License](https://opensource.org/licenses/mit-license.html). | [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) | +| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), Copyright (c) 2017 Apoorv Saxena. Lozad.js is distributed under the terms of the MIT License. | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) | +| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License. | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) | +| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), Copyright (c) 2015 Christian Fei. Simple-Jekyll-Search is distributed under the terms of the MIT License. | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) | +| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), Copyright (c) 2014 Anatol Broder. Compress HTML in Jekyll is distributed under the terms of the MIT License. | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) | + +[Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) diff --git a/README.md b/README.md index 4f8334d88..bc9f18c8f 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Mr. Green Jekyll Theme @@ -34,7 +34,7 @@ I was going to make my website and thought if I did it as a template, I could sh ### Features - Multilingual web site - - English (default), Japanese, Brazilian Portuguese, French + - English (default), Japanese, Brazilian Portuguese, French, Chinese - Recommended language offer feature - Auto Navigation Button adder with icon enable disable options - Layouts for `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` and more @@ -120,6 +120,7 @@ Thank you for your contributions! - Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). - French translation corrections by [Jean-Philippe Morissette](https://github.com/JPMorissette). +- Chinese translation by [fairycn](https://github.com/fairycn). ### License diff --git a/_data/conf/main.yml b/_data/conf/main.yml index fb542fb72..513b717f3 100644 --- a/_data/conf/main.yml +++ b/_data/conf/main.yml @@ -25,7 +25,7 @@ default_lng: en # to prevent adding languages with no folder # single language disables language switch # language order is linked to array order -language_switch_lang_list: [en, ja, pt, fr] +language_switch_lang_list: [en, ja, pt, fr, zh] # if the opened page is not in the user's language list, # suggest language(s) matching with the one(s) in browser language list and user language list. diff --git a/_data/content/projects/zh.yml b/_data/content/projects/zh.yml new file mode 100644 index 000000000..e4534a860 --- /dev/null +++ b/_data/content/projects/zh.yml @@ -0,0 +1,232 @@ +# you can move this content to front matter of [language]/tabs/projects.md +########################################################### +# Projects Page Data +########################################################### +page_data: + main: + header: "项目" + info: "你的项目页面描述。" + text_color: "白色" + # if you don't want to use background image, comment it. back_color will be activated. + img: ":projects-heading.jpg" + back_color: "浅蓝色" + + category: + - title: "示例" + type: id_example + color: "gray" + - title: "图片" + type: id_picture + color: "#62b462" + - title: "引用" + type: id_quote + color: "#2FD0ED" + + list: + # example + - type: id_example + project_name: "项目示例" + project_excerpt: "示例" + img: ":project1_thumb.jpg" + img_title: "img title1" + date: "2021-03-13" + post: | + # Examples + + 这是一个显示Mr.Green Jekyll主题的markdown相关样式的例子页面。 + + ### Headings (centered) + {:data-align="center"} + + # Heading 1 + + ## Heading 2 + + ### Heading 3 + + #### Heading 4 + + ##### Heading 5 + + ###### Heading 6 + + *** + + ### Paragraphs + + #### Paragraph + + **William Shakespeare**, Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + + #### Texts + + Quoted text `Hello world` + + Bold text **Hello world** + + Italic text _Hello world_ + + kbd text Hello world + + #### Blockquote + + > **William Shakespeare**, Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + + ### Link + + This is [Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme), a simple theme built for [Jekyll](https://jekyllrb.com/). + + ### Picture + + ![such a lovely place](:projects-heading.jpg) + + ### Picture (centered) + + ![such a lovely place](:project1_thumb.jpg){:data-align="center"} + + ### Lists + + - Apple + - Banana + - Orange + + 1. Fruits + 1. Apples + - Granny Smith + - Mutsu + 1. Bananas + - Cavendish + - Red + 1. Vegetables + + *** + + ### Tables + + #### Small Table (centered) + + | Fruits(not aligned) | Alignment (centered) | num (right align) | + | ------------------- | :------------------: | ----------------: | + | Apple | centered | 9999 | + | Banana | centered long text | 999 | + | Orange | centered | 99 | + | Lemon | centered | 9 | + {:data-align="center"} + + #### Wide Table (centered) + + scroll enabled when page is narrow + + | Fruits | num (left align) | num (right align) | num | num | num | + | ------ | :--------------- | ----------------: | ---- | ---- | ---- | + | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | + | Banana | 111 | 111 | 222 | 333 | 444 | + | Orange | 11 | 11 | 22 | 33 | 44 | + | Lemon | 1 | 1 | 2 | 3 | 4 | + {:data-align="center"} + + #### Wider Table + + scroll enabled when page is narrow + + | Fruits | num (left align) | num (right align) | num | num | num | num | num | num | + | ------ | :--------------- | ----------------: | ---- | ---- | ---- | ---- | ---- | ---- | + | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | 5555 | 6666 | 7777 | + | Banana | 111 | 111 | 222 | 333 | 444 | 555 | 666 | 777 | + | Orange | 11 | 11 | 22 | 33 | 44 | 55 | 66 | 77 | + | Lemon | 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | + + ### Code + + #### Quote + + ```python + for i in range(5, 10): + print(i) + ``` + + # picture + - type: id_picture + project_name: "Example Project" + project_excerpt: "Picture" + img: ":project2_thumb.jpg" + img_title: "img title2" + date: "2021-04-23" + post: | + # Title + This is project content. + + ![Image](:project2_thumb.jpg) + + # quote + - type: id_quote + project_name: "Example Project" + project_excerpt: "William Shakespeare" + #img: ":project1_thumb.jpg" + #img_title: "img title3" + date: "2021-05-27" + post: | + Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Albert Einstein" + img: ":project2_thumb.jpg" + img_title: "img title4" + date: "2021-06-08" + post: | + Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Mae West" + img: ":project1_thumb.jpg" + img_title: "img title5" + date: "2021-08-20" + post: | + You only live once, but if you do it right, once is enough. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Mahatma Gandhi " + img: ":project2_thumb.jpg" + img_title: "img title6" + date: "2021-12-20" + post: | + 改变世界,从改变自己开始 diff --git a/_data/lang/zh.yml b/_data/lang/zh.yml new file mode 100644 index 000000000..a1e913087 --- /dev/null +++ b/_data/lang/zh.yml @@ -0,0 +1,237 @@ +# Mr. Green Jekyll Theme (https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) +# Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com +# Copyright (c) 2023 fairycn https://github.com/fairycn +# Licensed under MIT + +lng: + name: 简体中文 + # based on ISO_639-1 https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes + code: zh + # specifically needed for open-graph meta og:locale. if open_graph or html_lng_with_country_code not enabled in _data/conf/main.yml, it's not necessary. + # For html tags, you can enable or disable using html_lng_with_country_code defined in _data/conf/main.yml + # based on ISO_3166-1 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + country: CN + switch_title: Cn + offer: + title: 语言 + msg_page: 显示简体中文页面 + # if page translation is not available, use this. + msg_site: 简体中文页面 + +date: + # if %b is used in the long format, it will be replaced with the corresponding item in 'months' list below. + long: "%Y年%m月%d日" + day: "%d日" + year: "%Y年" + # months itself also used in Archive page. + months: [1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月] + +not_found: + header: 未找到页面 + line1: 找不到您请求的页面。 + line2: 尝试菜单或网站搜索(如果可用)。 + +no_translation_tooltip: 无翻译 + +navigation: + contact_header: 联系方式 + +color_scheme_switch_tooltip: 颜色方案 + +search: + placeholder: 搜索 + noResultText: 没有找到任何结果。 + +image_viewer: + load_error: 该图像无法加载。 + +copyright: + additional_text: " 保留所有权利。" + +creative_commons: + some_rights_reserved: 保留部分权利。 + # check _data/owner/[language].yml for license type. + by: 除非另有说明,本网站的内容是以知识共享署名4.0国际许可协议授权的。 + by-nd: 除非另有说明,本网站上的内容采用知识共享署名-无衍生品4.0国际许可协议进行许可。 + by-sa: 除非另有说明,本网站的内容采用知识共享署名-相同方式共享4.0国际许可协议进行许可。 + by-nc: 除非另有说明,本网站的内容采用知识共享署名-非商业性4.0国际许可协议进行许可。 + by-nc-nd: 除非另有说明,本网站的内容采用知识共享署名-非商业性-非衍生品4.0国际许可协议进行许可。 + by-nc-sa: 除非另有说明,本网站的内容采用知识共享署名-非商业性-相同方式共享4.0国际许可协议进行许可。 + +# for 404 layout +not-found: + title: "404" + +# for post layout +post: + read_time: + unit: " min" + text: " 阅读" + # c for char w for word + word_char: w + # char or words per minute + per_minute: 200 + pager_buttons: + older_post: "← 旧帖子" + newer_post: "新帖子 →" + first_post: 最前面 + last_post: 末尾 + comments: + noscript: 请启用JavaScript以查看评论。 + disqus: + count_title: 评论 + click_to_load: "加载评论" + consent: + title: 评论 (Disqus.com) + text: > + 评论功能由第三方托管。通过显示外部内容,您接受disqus.com的$terms和$privacy_policy。 +
如果您希望退出定向广告,请打开$settings_link,然后单击“退出”按钮并关闭。返回此处并加载注释。 + terms_link_text: Terms of Service + privacy_link_text: 隐私政策 + settings_link_text: 此链接 + button: + load_once: 仅显示此时间 + load_and_do_not_ask_again: 始终显示 + table_of_contents: + heading: 目录 + tooltip: + move: 拖动移动 + close: 关闭 + share: + heading: 分享到 + link_copied: 链接已复制! + tooltip: + # keys need to match with _data/share.yml + twitter: Twitter + facebook: Facebook + telegram: Telegram + linkedin: LinkedIn + email: 电子邮件 + copy_link: 复制链接 + +# for post-list layout +post-list: + title: 博客 + button_name: 博客 + upside_down_tabs: + tab: + all: All + categories: 分类 + tags: 标签 + years: 年 + clear: 清除 + close: 关闭 + tooltip: + clear: 清除 + close: 关闭 + msg: + property_list: + # keys need to match with /query/post-query.json + tags: 标签 + category: 类别 + year: 年 + # you can use these wildcards, {property} {value} {thumb} + resultFoundTitleFormat: "{property} : {thumb}" + +# for home layout +home: + title: 欢迎 + button_name: 首页 + new_posts_title: 新文章 + new_posts_show_more_button: 阅读更多信息 ... + +# for archives layout +archives: + title: 归档 + button_name: 归档 + page_header: 归档 + +# for about layout +about: + title: 关于 + button_name: 关于 + email_title: 电子邮件 + +# for links layout +links: + title: 链接 + button_name: 链接 + link_text: 网站 + info_text: 信息 + +# for projects layout +projects: + title: 项目 + button_name: 项目 + read_more_text: 阅读更多信息 + read_less_text: 阅读较少信息 + +# for privacy-policy layout +privacy-policy: + title: &privacy_policy_title 隐私政策 + +# constants to be replaced for +constants: + greetings: 你好 + welcome: 欢迎 + sample: 样本 + +# for contact form +contact_form: + button_name: 联系方式 + formLoadingText: 正在加载联系方式。。。 + +# for cookie consent +cookie_consent: + privacy_policy_link_text: *privacy_policy_title + side_nav_setting_button_tooltip: &cookie_settings Cookie 设置 + panel_bar: + msg: > + 本网站使用cookie优化网站功能。 + 它将在你的批准下被激活。 + privacy_msg: 检查 $privacy_link. + buttons: + accept: &accept_button 允许所有 + settings: 自定义 + deny: &deny_button 拒绝 + panel_settings: + title: *cookie_settings + msg: > + 本网站使用cookie优化网站功能。 + 它将在您的批准下激活。请单击下面的每个项目以了解cookie策略。 + privacy_msg: 检查 $privacy_link. + buttons: + accept: *accept_button + save: 允许选择 + deny: *deny_button + always_active: 始终处于启动状态 + consent_types: + necessary: + title: 完全意义上的必要cookies + info: > + 这些cookies是网站功能所必需的,不能被禁用。 + 它们通常在网站功能如颜色方案等改变时被设置。 + 这些cookies不存储任何个人可识别信息。 + $gtag_info + analytics: + title: 性能类 、cookies #Performance and analytics cookies + info: $gtag_info + preferences: + title: 功能类cookies + info: $gtag_info + advertising: + title: 定位和广告cookies + info: $gtag_info + gtag_info: + # from https://support.google.com/tagmanager/answer/10718549#consent-types + ad_storage: > + 启用与广告有关的存储(如cookies)。 + analytics_storage: > + 启用与分析有关的存储(如cookies),例如访问时间。 + functionality_storage: > + 启用支持网站或应用程序功能的存储,例如语言设置。 + personalization_storage: > + 启用与个性化相关的存储,例如视频推荐。 + security_storage: > + 启用与安全有关的存储,如认证功能, + 预防欺诈,以及其他用户保护。 diff --git a/_data/owner/zh.yml b/_data/owner/zh.yml new file mode 100644 index 000000000..ad4177f99 --- /dev/null +++ b/_data/owner/zh.yml @@ -0,0 +1,93 @@ +########################################################### +# Owner's Personal Information +########################################################### +# This is your brand name +brand: "你的站点名称" + +# text below the brand name +brand_sub_text: "$site_sample" + +# used for seo meta post author (if it's not defined in post) +name: "你的名字" + +# home page top header texts +home: + # you can also use $site_brand, $site_greetings, $site_welcome in line1 and line2 for replacing texts. + top_header_line1: "$site_welcome" + # if commented, top header will be a single line + top_header_line2: "$site_brand" + +# about page sub title +about: + sub_title: "$site_sample" + +# if you don't want to add copyright year, comment or leave it blank. +# the year during which the claimed copyright for the work was first asserted. +copyright_start_year: "2022" + +# make sure creative_commons.enable is true in _data/conf/main.yml file +creative_commons: + # choose your license from https://creativecommons.org/choose/?lang=en + # then check link address below Selected License and make sure it matches with the list below + + # select one below + # 1. by Attribution 4.0 International + # 2. by-nd Attribution-NoDerivatives 4.0 International + # 3. by-sa Attribution-ShareAlike 4.0 International + # 4. by-nc Attribution-NonCommercial 4.0 International + # 5. by-nc-nd Attribution-NonCommercial-NoDerivatives 4.0 International + # 6. by-nc-sa Attribution-NonCommercial-ShareAlike 4.0 International + license_type: "by-sa" + +# seo meta this is needed for each language +# If meta_description is not defined in front matter, it's created from (post / page) content, +# if it has no content, this will be used for page description. It is also used in manifest.json +meta_common_description: "你的自述。" + +# contact options (side nav bottom and about page) +# the order of the items will be shown as here. +# comment to remove any contact item +contacts: + #- github: "" + #- email: "" + #- linkedin: "" + #- twitter: "" + #- mastodon: "" + #- instagram: "" + #- youtube: "" + #- facebook: "" +# to add more, check the _data/const/contact.yml file +# - your_new_contact: "" + +# make sure one of comment engine is enabled in _data/conf/posts.yml file +comments: + # Create a Disqus account and fill out the items below. + disqus: + shortname: "" + # To use Giscus, go to https://giscus.app and look for the "Configuration". + # - Enter your repository name, and it will create the following settings for you under "Enable giscus". + # - Get the corresponding items and fill in the items below. + # For other settings, please check the _data/conf/posts.yml file. + giscus: + repo: "" + repo-id: "" + category: "" + category-id: "" + +# if no id is provided, this feature will be disabled. +# make sure your environment does not match with google.analytics.ignore in _data/conf/main.yml +google_analytics_id: "" + +# there are different ways to verify web page. One is adding this as meta into html. +# make sure you set meta.google_site_verify: true in _data/conf/main.yml +# make sure your environment does not match with google.site_verification.ignore in _data/conf/main.yml +google_site_verification: "" + +# make sure you set contact_form.enable: true in _data/conf/main.yml +# - Create a form in Google Forms. You can use the template named "Contact Information". +# - Customize the form colors and response validation according to your needs. +# - To disable forced Google sign-in, go to "Settings > Response" and switch off the "Limit to 1 response". +# - Click the "Send" button at the top right. +# - Click the link icon from "Send via" list and copy the link. +# - Then paste the link between double quotes. +google_forms_contact_form_url: "" diff --git a/zh/404.md b/zh/404.md new file mode 100644 index 000000000..c53cadb06 --- /dev/null +++ b/zh/404.md @@ -0,0 +1,19 @@ +--- +layout: not-found +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_not_found + +# optional +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false + +# page specific settings +# add folders to redirected to 404, which does not have index.html +redirect_from: + - /zh/tabs/ + - /zh/query/ +--- diff --git a/zh/_posts/2021-08-10-Test-page1.markdown b/zh/_posts/2021-08-10-Test-page1.markdown new file mode 100644 index 000000000..ebee6be47 --- /dev/null +++ b/zh/_posts/2021-08-10-Test-page1.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_1 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, example post] +# thumbnail image for post +img: ":post_pic1.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-08-10 11:32:53 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-08-10 11:32:53 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-08-11-Test-page2.markdown b/zh/_posts/2021-08-11-Test-page2.markdown new file mode 100644 index 000000000..6e9abcb21 --- /dev/null +++ b/zh/_posts/2021-08-11-Test-page2.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_2 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, test] +# thumbnail image for post +img: ":post_pic2.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-08-11 12:35:04 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-08-11 12:35:04 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-12-Test-page3.markdown b/zh/_posts/2021-09-12-Test-page3.markdown new file mode 100644 index 000000000..6aa562fec --- /dev/null +++ b/zh/_posts/2021-09-12-Test-page3.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_3 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, sample] +# thumbnail image for post +img: ":post_pic3.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-09-12 13:45:08 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-09-12 13:45:08 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-13-Test-page4.markdown b/zh/_posts/2021-09-13-Test-page4.markdown new file mode 100644 index 000000000..80d97da3d --- /dev/null +++ b/zh/_posts/2021-09-13-Test-page4.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_4 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, example post] +# thumbnail image for post +#img: ":post_pic1.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-09-13 14:47:12 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-09-13 14:47:12 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-14-Test-page5.markdown b/zh/_posts/2021-10-14-Test-page5.markdown new file mode 100644 index 000000000..ad42508f5 --- /dev/null +++ b/zh/_posts/2021-10-14-Test-page5.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_5 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, test] +# thumbnail image for post +img: ":post_pic2.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-10-14 18:47:35 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-10-14 18:47:35 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-15-Test-page6.markdown b/zh/_posts/2021-10-15-Test-page6.markdown new file mode 100644 index 000000000..b3a83a8f9 --- /dev/null +++ b/zh/_posts/2021-10-15-Test-page6.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_6 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, sample] +# thumbnail image for post +img: ":post_pic3.jpg" +# disable comments on this page +#comments_disable: true + +# publish date +date: 2021-10-15 19:20:03 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-10-15 19:20:03 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/index.md b/zh/index.md new file mode 100644 index 000000000..b1992f90b --- /dev/null +++ b/zh/index.md @@ -0,0 +1,45 @@ +--- +layout: home +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_home + +# image for page specific usage +img: ":home-heading.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +# don't forget that this is root index.html. If you disable this, there will be no index.html page to open +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ website_info_text_first }} + +{{ website_info_text_second }} diff --git a/zh/privacy-policy.md b/zh/privacy-policy.md new file mode 100644 index 000000000..18d18535a --- /dev/null +++ b/zh/privacy-policy.md @@ -0,0 +1,46 @@ +--- +layout: privacy-policy +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_privacy_policy + +# image for page specific usage +#img: ":image.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ page_title_text }} + +{{ website_info_text }} + +{{ website_info_text_second }} diff --git a/zh/query/post-query.json b/zh/query/post-query.json new file mode 100644 index 000000000..f76f2067b --- /dev/null +++ b/zh/query/post-query.json @@ -0,0 +1,7 @@ +--- +layout: json/post-query + +# optional +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/query/search.json b/zh/query/search.json new file mode 100644 index 000000000..b4c224737 --- /dev/null +++ b/zh/query/search.json @@ -0,0 +1,7 @@ +--- +layout: json/search + +# optional +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/about.md b/zh/tabs/about.md new file mode 100644 index 000000000..98d970f88 --- /dev/null +++ b/zh/tabs/about.md @@ -0,0 +1,44 @@ +--- +layout: about +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_about + +# image for page specific usage +img: ":about.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ website_info_text_first }} + +{{ website_info_text_second }} diff --git a/zh/tabs/archive.md b/zh/tabs/archive.md new file mode 100644 index 000000000..87fc07d60 --- /dev/null +++ b/zh/tabs/archive.md @@ -0,0 +1,35 @@ +--- +layout: archives +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_archives + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/blog/index.html b/zh/tabs/blog/index.html new file mode 100644 index 000000000..00a51f496 --- /dev/null +++ b/zh/tabs/blog/index.html @@ -0,0 +1,35 @@ +--- +layout: post-list +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_post_list + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/links.md b/zh/tabs/links.md new file mode 100644 index 000000000..c161cddd2 --- /dev/null +++ b/zh/tabs/links.md @@ -0,0 +1,94 @@ +--- +layout: links +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_links + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false + + +# you can always move this content to _data/content/ folder +# just create new file at _data/content/links/[language].yml and move content below. +########################################################### +# Links Page Data +########################################################### +page_data: + main: + header: "链接" + info: "链接页面描述。" + + # To change order of the Categories, simply change order. (you don't need to change list order.) + category: + - title: "JekyII / Liquid" + type: id_jekyiiliquid + color: "gray" + - title: "网页设计" + type: id_webdesign + color: "#F4A273" + - title: "编程" + type: id_programming + color: "#62b462" + + list: + - + # programming + - type: id_programming + title: "Stack OverFlow" + url: "https://stackoverflow.com/" + info: "Stack Overflow是一个为专业和热情的程序员提供问答的网站。" + + # jekyiiliquid + - type: id_jekyiiliquid + title: "Jekyll" + url: "https://jekyllrb.com/" + info: "将纯文本转换成静态网站和博客。" + - type: id_jekyiiliquid + title: "Jekyll小册子" + url: "https://cloudcannon.com/community/jekyll-cheat-sheet/" + info: "要记住的Jekyll变量和过滤器非常多,要把它们全部记在脑子里可能很困难。这张小册子可以作为Jekyll所有功能的快速参考。" + - type: id_jekyiiliquid + title: "对于设计师来说的Liquid" + url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Designers" + info: "面向设计师的Liquid GitHub wiki" + - type: id_jekyiiliquid + title: "面向程序员的Liquid" + url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Programmers" + info: "为程序员提供的Liquid的GitHub wiki" + - type: id_jekyiiliquid + title: "Liquid参考资料" + url: "https://shopify.dev/api/liquid/" + info: "Liquid是Shopify创建的一种模板语言,用Ruby编写。它可以作为一个开源项目在GitHub上使用。" + + # webdesign + - type: id_webdesign + title: "W3Schools" + url: "https://www.w3schools.com/" + info: "W3Schools提供所有主要网络语言的免费在线教程、参考和练习。它涵盖了流行的主题,如HTML、CSS、JavaScript、Python、SQL和Java。" +--- diff --git a/zh/tabs/projects.md b/zh/tabs/projects.md new file mode 100644 index 000000000..547a6cb33 --- /dev/null +++ b/zh/tabs/projects.md @@ -0,0 +1,35 @@ +--- +layout: projects +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_projects + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- From abea4175295b0d7a8cd76b42e9a9386ea38eb58e Mon Sep 17 00:00:00 2001 From: "Mr. Green's Workshop" <76992231+MrGreensWorkshop@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:30:23 +0900 Subject: [PATCH 2/5] Revert "Simplified Chinese Support (#186)" This reverts commit 652419b52cac9eddb22b55f060d48e454f45c58b. --- README-jp.md | 5 +- README-pt.md | 5 +- README-zh.md | 148 -------------- README.md | 5 +- _data/conf/main.yml | 2 +- _data/content/projects/zh.yml | 232 ---------------------- _data/lang/zh.yml | 237 ----------------------- _data/owner/zh.yml | 93 --------- zh/404.md | 19 -- zh/_posts/2021-08-10-Test-page1.markdown | 52 ----- zh/_posts/2021-08-11-Test-page2.markdown | 52 ----- zh/_posts/2021-09-12-Test-page3.markdown | 52 ----- zh/_posts/2021-09-13-Test-page4.markdown | 52 ----- zh/_posts/2021-10-14-Test-page5.markdown | 52 ----- zh/_posts/2021-10-15-Test-page6.markdown | 52 ----- zh/index.md | 45 ----- zh/privacy-policy.md | 46 ----- zh/query/post-query.json | 7 - zh/query/search.json | 7 - zh/tabs/about.md | 44 ----- zh/tabs/archive.md | 35 ---- zh/tabs/blog/index.html | 35 ---- zh/tabs/links.md | 94 --------- zh/tabs/projects.md | 35 ---- 24 files changed, 7 insertions(+), 1399 deletions(-) delete mode 100644 README-zh.md delete mode 100644 _data/content/projects/zh.yml delete mode 100644 _data/lang/zh.yml delete mode 100644 _data/owner/zh.yml delete mode 100644 zh/404.md delete mode 100644 zh/_posts/2021-08-10-Test-page1.markdown delete mode 100644 zh/_posts/2021-08-11-Test-page2.markdown delete mode 100644 zh/_posts/2021-09-12-Test-page3.markdown delete mode 100644 zh/_posts/2021-09-13-Test-page4.markdown delete mode 100644 zh/_posts/2021-10-14-Test-page5.markdown delete mode 100644 zh/_posts/2021-10-15-Test-page6.markdown delete mode 100644 zh/index.md delete mode 100644 zh/privacy-policy.md delete mode 100644 zh/query/post-query.json delete mode 100644 zh/query/search.json delete mode 100644 zh/tabs/about.md delete mode 100644 zh/tabs/archive.md delete mode 100644 zh/tabs/blog/index.html delete mode 100644 zh/tabs/links.md delete mode 100644 zh/tabs/projects.md diff --git a/README-jp.md b/README-jp.md index b0bc128f3..7fedadcce 100755 --- a/README-jp.md +++ b/README-jp.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] ## Mr. Green Jekyll テーマ @@ -34,7 +34,7 @@ ### Features - 多言語Webサイト - - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語、中国語 + - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語 - おすすめの言語提供機能 - アイコン有効無効オプション付き自動ナビゲーションボタン追加機能 - `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` 等々のレイアウト @@ -120,7 +120,6 @@ YouTubeの[Mr. Green テーマチュートリアルのプレイリスト](https: - ブラジルポルトガル語の翻訳 [Vitor DallAcqua](https://github.com/fandangos)。 - フランス語の翻訳修正 [Jean-Philippe Morissette](https://github.com/JPMorissette)。 -- 中国語の翻訳 [fairycn](https://github.com/fairycn)。 ### License diff --git a/README-pt.md b/README-pt.md index 2061d164d..b422d8298 100644 --- a/README-pt.md +++ b/README-pt.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] ## Tema Mr. Green Jekyll @@ -34,7 +34,7 @@ Eu estava criando meu wbesite e pensei em fazê-lo como um modelo que eu poderia ### Recursos disponíveis - Website para vários idiomas. - - Inglês (padrão), Japonês, Português do Brasil, Francês, Chinês + - Inglês (padrão), Japonês, Português do Brasil, Francês - Recomendação de idioma - Auto navegação com possibilidade de habilitar e desabilitar os ícones. - Layout para `Principal`, `Sobre`, `Arquivos`, `Lista-de-Posts`, `Links`, `Projetos` e mais @@ -120,7 +120,6 @@ Obrigado por suas contribuições! - Tradução para o português brasileiro por [Vitor DallAcqua](https://github.com/fandangos). - Correções da tradução para o francês por [Jean-Philippe Morissette](https://github.com/JPMorissette). -- Tradução para o chinês por [fairycn](https://github.com/fairycn). ### Licença diff --git a/README-zh.md b/README-zh.md deleted file mode 100644 index ca8d540d0..000000000 --- a/README-zh.md +++ /dev/null @@ -1,148 +0,0 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [简体中文] - -## Mr. Green Jekyll 主题 - - - -[GitHub issues](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/issues) -[GitHub forks](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) -[GitHub stars](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) -[GitHub license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt) -[Support me on GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") -[Support me on Patreon](https://patreon.com/MrGreensWorkshop "Support me on Patreon") -[Tip me via Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip me via Ko-fi") - ---- - -
- screen_mock -

- 点击这里查看实时演示 -
- - -### 介绍 - - - -[Mr. Green](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) 是一个多语言主题,由 [Jekyll](https://jekyllrb.com/) 并完全兼容于 [GitHub Pages](https://pages.github.com/). - - - -我打算做我的网站,并认为如果我把它做为一个模板,我可以与开源社区分享它。这就是为什么我决定把它建成一个主题。我很努力地工作,使之成为可能,所以请考虑 [supporting my work](#you-can-support-my-work). 谢谢。 - -### 特色 - -- 多语言网站 - - English (default), Japanese, Brazilian Portuguese -- 推荐的语言建议功能 -- 带图标的自动导航按钮添加器 启用禁用选项 -- “首页”、“关于”、“归档”、“文章列表”、“链接”、“项目”等的布局 -- 颜色方案的切换选项(深色) -- 自动联系选项添加器 -- 自动引用图片(不需要为图片添加完整的路径,只需在前面添加`:`即可)。 -- 图像 lazy 加载器, 图像浏览器 -- 具有创意共享许可的酷炫页脚 -- 帖子的可移动目录模式框 -- 文章共享选项 -- 按类别或标签列出的帖子 -- 帖子的评论 - - [Giscus](https://giscus.app) - - [Disqus](https://disqus.com) -- 可选择编号分页或滚动加载类型 -- 网站导航功能 -- 搜索引擎优化(SEO) - - [Schema Markup](https://schema.org) - - [Open Graph](https://ogp.me/) - - [Twitter](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary) -- 分析(Google Analytics) -- Cookie许可功能 -- 联系表格功能(谷歌表格)。 -- 网站搜索功能 -- 代码压缩,占用空间小 (`HTML` `JS` `SCSS`) -- 移动应用程序支持 -- 对移动设备友好(在安卓和IOS系统上测试) -- 为开发者提供了良好的文件夹结构(在Chrome、Safari、FireFox上测试)。 - -### 安装 - -#### Github页面 - -1. [Fork the repo](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork). -1. Edit \_config.yml and change `url` like below and push changes. - - ```yaml - url: "https://your_github_user_name.github.io" - ``` - -1. 将 repo 的名称重命名为 `your_github_user_name.github.io` -1. 在 repo 上的标签检查部署状态 `Actions` . -1. 当它变成绿色时,您的站点就启动并运行了 `https://your_github_user_name.github.io` - -#### Local build - -1. [Install Jekyll](https://jekyllrb.com/docs/installation/) to your OS -1. Clone or [download](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest) the repo, in command prompt go to the folder run `bundle install` command -1. 构建使用 `bundle exec jekyll serve --watch --host 0.0.0.0 --safe` command - - with `--host 0.0.0.0` 参数您可以从同一个局域网访问web服务器. - - with `--safe` 参数你可以确保没有第三方插件添加。(用于Github页面开发) -1. 您的页面将在 `0.0.0.0:4000/` 地址. - -### Documentation - -查看详情 [Mr. Green theme tutorials playlist](https://www.youtube.com/playlist?list=PLAymxPbYHgl-fFy5can7uZBMJtFWVcphD) 在 YouTube - -### 功劳 - -我想感谢这些项目,它们给了我一个建立网站的机会。 - -- [Jekyll](https://jekyllrb.com/) is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. It is a wonderful project which is maintained by volunteers. - -- [GitHub Pages](https://pages.github.com/) Hosted directly from your GitHub repository. Just push the changes and the site will be automatically generated. - -在我从事这个项目时,我发现一些有用的网站。 [links page](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/tabs/links.html) - -### 你可以支持我的工作 - -从零开始创建项目需要大量的时间。如果你考虑支持我,使我能够继续这样的项目,为大家创造新的内容,我将非常感激。 - -- You can be one of my [GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") (monthly or one time) -- You can be one of my [Patreons](https://patreon.com/MrGreensWorkshop "Be my Patron") (monthly) -- You can tip me via [Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip Me via Ko-fi") (one time) - -### 贡献 - -欢迎拉取Requests。请检查Issues和Request模板中的说明。 - -### 贡献者 - -感谢你们的贡献! - -- Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). - -### License - -正如它所说,在 [MIT license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt), 你可以在任何地方使用这个主题,只要你包括许可证和版权声明。 - -`Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com` - -请添加链接到我的页面或在页脚留下 "Pwrd by Mr. Green" - -谢谢你! - -### Other Licenses - -Mr. Green Jekyll 主题包含了下面写的库。没有这些库,我不可能使这个项目成为可能。 - -| Library | file | -| :----------------------------------- | ---- | -| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0), Copyright [OpenJS Foundation](https://openjsf.org) and other contributors. jQuery is distributed under the terms of the MIT License. | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) | -| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), Copyright (c) 2011-2016 Twitter, Inc. Bootstrap is distributed under the terms of the MIT License. | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) | -| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), Copyright (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap Table of Contents is distributed under the terms of the MIT License. | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) | -| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), Copyright (c) 2017 Dave Gandy. The Font Awesome font is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL). Font Awesome CSS, LESS, and Sass files are distributed under the terms of the [MIT License](https://opensource.org/licenses/mit-license.html). | [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) | -| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), Copyright (c) 2017 Apoorv Saxena. Lozad.js is distributed under the terms of the MIT License. | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) | -| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License. | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) | -| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), Copyright (c) 2015 Christian Fei. Simple-Jekyll-Search is distributed under the terms of the MIT License. | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) | -| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), Copyright (c) 2014 Anatol Broder. Compress HTML in Jekyll is distributed under the terms of the MIT License. | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) | - -[Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) diff --git a/README.md b/README.md index bc9f18c8f..4f8334d88 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] +[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] ## Mr. Green Jekyll Theme @@ -34,7 +34,7 @@ I was going to make my website and thought if I did it as a template, I could sh ### Features - Multilingual web site - - English (default), Japanese, Brazilian Portuguese, French, Chinese + - English (default), Japanese, Brazilian Portuguese, French - Recommended language offer feature - Auto Navigation Button adder with icon enable disable options - Layouts for `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` and more @@ -120,7 +120,6 @@ Thank you for your contributions! - Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). - French translation corrections by [Jean-Philippe Morissette](https://github.com/JPMorissette). -- Chinese translation by [fairycn](https://github.com/fairycn). ### License diff --git a/_data/conf/main.yml b/_data/conf/main.yml index 513b717f3..fb542fb72 100644 --- a/_data/conf/main.yml +++ b/_data/conf/main.yml @@ -25,7 +25,7 @@ default_lng: en # to prevent adding languages with no folder # single language disables language switch # language order is linked to array order -language_switch_lang_list: [en, ja, pt, fr, zh] +language_switch_lang_list: [en, ja, pt, fr] # if the opened page is not in the user's language list, # suggest language(s) matching with the one(s) in browser language list and user language list. diff --git a/_data/content/projects/zh.yml b/_data/content/projects/zh.yml deleted file mode 100644 index e4534a860..000000000 --- a/_data/content/projects/zh.yml +++ /dev/null @@ -1,232 +0,0 @@ -# you can move this content to front matter of [language]/tabs/projects.md -########################################################### -# Projects Page Data -########################################################### -page_data: - main: - header: "项目" - info: "你的项目页面描述。" - text_color: "白色" - # if you don't want to use background image, comment it. back_color will be activated. - img: ":projects-heading.jpg" - back_color: "浅蓝色" - - category: - - title: "示例" - type: id_example - color: "gray" - - title: "图片" - type: id_picture - color: "#62b462" - - title: "引用" - type: id_quote - color: "#2FD0ED" - - list: - # example - - type: id_example - project_name: "项目示例" - project_excerpt: "示例" - img: ":project1_thumb.jpg" - img_title: "img title1" - date: "2021-03-13" - post: | - # Examples - - 这是一个显示Mr.Green Jekyll主题的markdown相关样式的例子页面。 - - ### Headings (centered) - {:data-align="center"} - - # Heading 1 - - ## Heading 2 - - ### Heading 3 - - #### Heading 4 - - ##### Heading 5 - - ###### Heading 6 - - *** - - ### Paragraphs - - #### Paragraph - - **William Shakespeare**, Let me not to the marriage of true minds - Admit impediments. Love is not love - Which alters when it alteration finds, - Or bends with the remover to remove. - O no, it is an ever-fixed mark - That looks on tempests and is never shaken; - It is the star to every wand'ring barque, - Whose worth's unknown, although his height be taken. - Love's not Time's fool, though rosy lips and cheeks - Within his bending sickle's compass come; - Love alters not with his brief hours and weeks, - But bears it out even to the edge of doom. - If this be error and upon me proved, - I never writ, nor no man ever loved. - - #### Texts - - Quoted text `Hello world` - - Bold text **Hello world** - - Italic text _Hello world_ - - kbd text Hello world - - #### Blockquote - - > **William Shakespeare**, Let me not to the marriage of true minds - Admit impediments. Love is not love - Which alters when it alteration finds, - Or bends with the remover to remove. - O no, it is an ever-fixed mark - That looks on tempests and is never shaken; - It is the star to every wand'ring barque, - Whose worth's unknown, although his height be taken. - Love's not Time's fool, though rosy lips and cheeks - Within his bending sickle's compass come; - Love alters not with his brief hours and weeks, - But bears it out even to the edge of doom. - If this be error and upon me proved, - I never writ, nor no man ever loved. - - ### Link - - This is [Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme), a simple theme built for [Jekyll](https://jekyllrb.com/). - - ### Picture - - ![such a lovely place](:projects-heading.jpg) - - ### Picture (centered) - - ![such a lovely place](:project1_thumb.jpg){:data-align="center"} - - ### Lists - - - Apple - - Banana - - Orange - - 1. Fruits - 1. Apples - - Granny Smith - - Mutsu - 1. Bananas - - Cavendish - - Red - 1. Vegetables - - *** - - ### Tables - - #### Small Table (centered) - - | Fruits(not aligned) | Alignment (centered) | num (right align) | - | ------------------- | :------------------: | ----------------: | - | Apple | centered | 9999 | - | Banana | centered long text | 999 | - | Orange | centered | 99 | - | Lemon | centered | 9 | - {:data-align="center"} - - #### Wide Table (centered) - - scroll enabled when page is narrow - - | Fruits | num (left align) | num (right align) | num | num | num | - | ------ | :--------------- | ----------------: | ---- | ---- | ---- | - | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | - | Banana | 111 | 111 | 222 | 333 | 444 | - | Orange | 11 | 11 | 22 | 33 | 44 | - | Lemon | 1 | 1 | 2 | 3 | 4 | - {:data-align="center"} - - #### Wider Table - - scroll enabled when page is narrow - - | Fruits | num (left align) | num (right align) | num | num | num | num | num | num | - | ------ | :--------------- | ----------------: | ---- | ---- | ---- | ---- | ---- | ---- | - | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | 5555 | 6666 | 7777 | - | Banana | 111 | 111 | 222 | 333 | 444 | 555 | 666 | 777 | - | Orange | 11 | 11 | 22 | 33 | 44 | 55 | 66 | 77 | - | Lemon | 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | - - ### Code - - #### Quote - - ```python - for i in range(5, 10): - print(i) - ``` - - # picture - - type: id_picture - project_name: "Example Project" - project_excerpt: "Picture" - img: ":project2_thumb.jpg" - img_title: "img title2" - date: "2021-04-23" - post: | - # Title - This is project content. - - ![Image](:project2_thumb.jpg) - - # quote - - type: id_quote - project_name: "Example Project" - project_excerpt: "William Shakespeare" - #img: ":project1_thumb.jpg" - #img_title: "img title3" - date: "2021-05-27" - post: | - Let me not to the marriage of true minds - Admit impediments. Love is not love - Which alters when it alteration finds, - Or bends with the remover to remove. - O no, it is an ever-fixed mark - That looks on tempests and is never shaken; - It is the star to every wand'ring barque, - Whose worth's unknown, although his height be taken. - Love's not Time's fool, though rosy lips and cheeks - Within his bending sickle's compass come; - Love alters not with his brief hours and weeks, - But bears it out even to the edge of doom. - If this be error and upon me proved, - I never writ, nor no man ever loved. - - type: id_quote - project_name: "示例项目" - project_excerpt: "Albert Einstein" - img: ":project2_thumb.jpg" - img_title: "img title4" - date: "2021-06-08" - post: | - Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - - type: id_quote - project_name: "示例项目" - project_excerpt: "Mae West" - img: ":project1_thumb.jpg" - img_title: "img title5" - date: "2021-08-20" - post: | - You only live once, but if you do it right, once is enough. - - type: id_quote - project_name: "示例项目" - project_excerpt: "Mahatma Gandhi " - img: ":project2_thumb.jpg" - img_title: "img title6" - date: "2021-12-20" - post: | - 改变世界,从改变自己开始 diff --git a/_data/lang/zh.yml b/_data/lang/zh.yml deleted file mode 100644 index a1e913087..000000000 --- a/_data/lang/zh.yml +++ /dev/null @@ -1,237 +0,0 @@ -# Mr. Green Jekyll Theme (https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) -# Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com -# Copyright (c) 2023 fairycn https://github.com/fairycn -# Licensed under MIT - -lng: - name: 简体中文 - # based on ISO_639-1 https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - code: zh - # specifically needed for open-graph meta og:locale. if open_graph or html_lng_with_country_code not enabled in _data/conf/main.yml, it's not necessary. - # For html tags, you can enable or disable using html_lng_with_country_code defined in _data/conf/main.yml - # based on ISO_3166-1 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - country: CN - switch_title: Cn - offer: - title: 语言 - msg_page: 显示简体中文页面 - # if page translation is not available, use this. - msg_site: 简体中文页面 - -date: - # if %b is used in the long format, it will be replaced with the corresponding item in 'months' list below. - long: "%Y年%m月%d日" - day: "%d日" - year: "%Y年" - # months itself also used in Archive page. - months: [1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月] - -not_found: - header: 未找到页面 - line1: 找不到您请求的页面。 - line2: 尝试菜单或网站搜索(如果可用)。 - -no_translation_tooltip: 无翻译 - -navigation: - contact_header: 联系方式 - -color_scheme_switch_tooltip: 颜色方案 - -search: - placeholder: 搜索 - noResultText: 没有找到任何结果。 - -image_viewer: - load_error: 该图像无法加载。 - -copyright: - additional_text: " 保留所有权利。" - -creative_commons: - some_rights_reserved: 保留部分权利。 - # check _data/owner/[language].yml for license type. - by: 除非另有说明,本网站的内容是以知识共享署名4.0国际许可协议授权的。 - by-nd: 除非另有说明,本网站上的内容采用知识共享署名-无衍生品4.0国际许可协议进行许可。 - by-sa: 除非另有说明,本网站的内容采用知识共享署名-相同方式共享4.0国际许可协议进行许可。 - by-nc: 除非另有说明,本网站的内容采用知识共享署名-非商业性4.0国际许可协议进行许可。 - by-nc-nd: 除非另有说明,本网站的内容采用知识共享署名-非商业性-非衍生品4.0国际许可协议进行许可。 - by-nc-sa: 除非另有说明,本网站的内容采用知识共享署名-非商业性-相同方式共享4.0国际许可协议进行许可。 - -# for 404 layout -not-found: - title: "404" - -# for post layout -post: - read_time: - unit: " min" - text: " 阅读" - # c for char w for word - word_char: w - # char or words per minute - per_minute: 200 - pager_buttons: - older_post: "← 旧帖子" - newer_post: "新帖子 →" - first_post: 最前面 - last_post: 末尾 - comments: - noscript: 请启用JavaScript以查看评论。 - disqus: - count_title: 评论 - click_to_load: "加载评论" - consent: - title: 评论 (Disqus.com) - text: > - 评论功能由第三方托管。通过显示外部内容,您接受disqus.com的$terms和$privacy_policy。 -
如果您希望退出定向广告,请打开$settings_link,然后单击“退出”按钮并关闭。返回此处并加载注释。 - terms_link_text: Terms of Service - privacy_link_text: 隐私政策 - settings_link_text: 此链接 - button: - load_once: 仅显示此时间 - load_and_do_not_ask_again: 始终显示 - table_of_contents: - heading: 目录 - tooltip: - move: 拖动移动 - close: 关闭 - share: - heading: 分享到 - link_copied: 链接已复制! - tooltip: - # keys need to match with _data/share.yml - twitter: Twitter - facebook: Facebook - telegram: Telegram - linkedin: LinkedIn - email: 电子邮件 - copy_link: 复制链接 - -# for post-list layout -post-list: - title: 博客 - button_name: 博客 - upside_down_tabs: - tab: - all: All - categories: 分类 - tags: 标签 - years: 年 - clear: 清除 - close: 关闭 - tooltip: - clear: 清除 - close: 关闭 - msg: - property_list: - # keys need to match with /query/post-query.json - tags: 标签 - category: 类别 - year: 年 - # you can use these wildcards, {property} {value} {thumb} - resultFoundTitleFormat: "{property} : {thumb}" - -# for home layout -home: - title: 欢迎 - button_name: 首页 - new_posts_title: 新文章 - new_posts_show_more_button: 阅读更多信息 ... - -# for archives layout -archives: - title: 归档 - button_name: 归档 - page_header: 归档 - -# for about layout -about: - title: 关于 - button_name: 关于 - email_title: 电子邮件 - -# for links layout -links: - title: 链接 - button_name: 链接 - link_text: 网站 - info_text: 信息 - -# for projects layout -projects: - title: 项目 - button_name: 项目 - read_more_text: 阅读更多信息 - read_less_text: 阅读较少信息 - -# for privacy-policy layout -privacy-policy: - title: &privacy_policy_title 隐私政策 - -# constants to be replaced for -constants: - greetings: 你好 - welcome: 欢迎 - sample: 样本 - -# for contact form -contact_form: - button_name: 联系方式 - formLoadingText: 正在加载联系方式。。。 - -# for cookie consent -cookie_consent: - privacy_policy_link_text: *privacy_policy_title - side_nav_setting_button_tooltip: &cookie_settings Cookie 设置 - panel_bar: - msg: > - 本网站使用cookie优化网站功能。 - 它将在你的批准下被激活。 - privacy_msg: 检查 $privacy_link. - buttons: - accept: &accept_button 允许所有 - settings: 自定义 - deny: &deny_button 拒绝 - panel_settings: - title: *cookie_settings - msg: > - 本网站使用cookie优化网站功能。 - 它将在您的批准下激活。请单击下面的每个项目以了解cookie策略。 - privacy_msg: 检查 $privacy_link. - buttons: - accept: *accept_button - save: 允许选择 - deny: *deny_button - always_active: 始终处于启动状态 - consent_types: - necessary: - title: 完全意义上的必要cookies - info: > - 这些cookies是网站功能所必需的,不能被禁用。 - 它们通常在网站功能如颜色方案等改变时被设置。 - 这些cookies不存储任何个人可识别信息。 - $gtag_info - analytics: - title: 性能类 、cookies #Performance and analytics cookies - info: $gtag_info - preferences: - title: 功能类cookies - info: $gtag_info - advertising: - title: 定位和广告cookies - info: $gtag_info - gtag_info: - # from https://support.google.com/tagmanager/answer/10718549#consent-types - ad_storage: > - 启用与广告有关的存储(如cookies)。 - analytics_storage: > - 启用与分析有关的存储(如cookies),例如访问时间。 - functionality_storage: > - 启用支持网站或应用程序功能的存储,例如语言设置。 - personalization_storage: > - 启用与个性化相关的存储,例如视频推荐。 - security_storage: > - 启用与安全有关的存储,如认证功能, - 预防欺诈,以及其他用户保护。 diff --git a/_data/owner/zh.yml b/_data/owner/zh.yml deleted file mode 100644 index ad4177f99..000000000 --- a/_data/owner/zh.yml +++ /dev/null @@ -1,93 +0,0 @@ -########################################################### -# Owner's Personal Information -########################################################### -# This is your brand name -brand: "你的站点名称" - -# text below the brand name -brand_sub_text: "$site_sample" - -# used for seo meta post author (if it's not defined in post) -name: "你的名字" - -# home page top header texts -home: - # you can also use $site_brand, $site_greetings, $site_welcome in line1 and line2 for replacing texts. - top_header_line1: "$site_welcome" - # if commented, top header will be a single line - top_header_line2: "$site_brand" - -# about page sub title -about: - sub_title: "$site_sample" - -# if you don't want to add copyright year, comment or leave it blank. -# the year during which the claimed copyright for the work was first asserted. -copyright_start_year: "2022" - -# make sure creative_commons.enable is true in _data/conf/main.yml file -creative_commons: - # choose your license from https://creativecommons.org/choose/?lang=en - # then check link address below Selected License and make sure it matches with the list below - - # select one below - # 1. by Attribution 4.0 International - # 2. by-nd Attribution-NoDerivatives 4.0 International - # 3. by-sa Attribution-ShareAlike 4.0 International - # 4. by-nc Attribution-NonCommercial 4.0 International - # 5. by-nc-nd Attribution-NonCommercial-NoDerivatives 4.0 International - # 6. by-nc-sa Attribution-NonCommercial-ShareAlike 4.0 International - license_type: "by-sa" - -# seo meta this is needed for each language -# If meta_description is not defined in front matter, it's created from (post / page) content, -# if it has no content, this will be used for page description. It is also used in manifest.json -meta_common_description: "你的自述。" - -# contact options (side nav bottom and about page) -# the order of the items will be shown as here. -# comment to remove any contact item -contacts: - #- github: "" - #- email: "" - #- linkedin: "" - #- twitter: "" - #- mastodon: "" - #- instagram: "" - #- youtube: "" - #- facebook: "" -# to add more, check the _data/const/contact.yml file -# - your_new_contact: "" - -# make sure one of comment engine is enabled in _data/conf/posts.yml file -comments: - # Create a Disqus account and fill out the items below. - disqus: - shortname: "" - # To use Giscus, go to https://giscus.app and look for the "Configuration". - # - Enter your repository name, and it will create the following settings for you under "Enable giscus". - # - Get the corresponding items and fill in the items below. - # For other settings, please check the _data/conf/posts.yml file. - giscus: - repo: "" - repo-id: "" - category: "" - category-id: "" - -# if no id is provided, this feature will be disabled. -# make sure your environment does not match with google.analytics.ignore in _data/conf/main.yml -google_analytics_id: "" - -# there are different ways to verify web page. One is adding this as meta into html. -# make sure you set meta.google_site_verify: true in _data/conf/main.yml -# make sure your environment does not match with google.site_verification.ignore in _data/conf/main.yml -google_site_verification: "" - -# make sure you set contact_form.enable: true in _data/conf/main.yml -# - Create a form in Google Forms. You can use the template named "Contact Information". -# - Customize the form colors and response validation according to your needs. -# - To disable forced Google sign-in, go to "Settings > Response" and switch off the "Limit to 1 response". -# - Click the "Send" button at the top right. -# - Click the link icon from "Send via" list and copy the link. -# - Then paste the link between double quotes. -google_forms_contact_form_url: "" diff --git a/zh/404.md b/zh/404.md deleted file mode 100644 index c53cadb06..000000000 --- a/zh/404.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: not-found -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_not_found - -# optional -# exclude from on site search -on_site_search_exclude: true -# exclude from search engines -search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false - -# page specific settings -# add folders to redirected to 404, which does not have index.html -redirect_from: - - /zh/tabs/ - - /zh/query/ ---- diff --git a/zh/_posts/2021-08-10-Test-page1.markdown b/zh/_posts/2021-08-10-Test-page1.markdown deleted file mode 100644 index ebee6be47..000000000 --- a/zh/_posts/2021-08-10-Test-page1.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_1 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, example post] -# thumbnail image for post -img: ":post_pic1.jpg" -# disable comments on this page -comments_disable: true - -# publish date -date: 2021-08-10 11:32:53 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-08-10 11:32:53 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/_posts/2021-08-11-Test-page2.markdown b/zh/_posts/2021-08-11-Test-page2.markdown deleted file mode 100644 index 6e9abcb21..000000000 --- a/zh/_posts/2021-08-11-Test-page2.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_2 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, test] -# thumbnail image for post -img: ":post_pic2.jpg" -# disable comments on this page -comments_disable: true - -# publish date -date: 2021-08-11 12:35:04 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-08-11 12:35:04 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-12-Test-page3.markdown b/zh/_posts/2021-09-12-Test-page3.markdown deleted file mode 100644 index 6aa562fec..000000000 --- a/zh/_posts/2021-09-12-Test-page3.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_3 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, sample] -# thumbnail image for post -img: ":post_pic3.jpg" -# disable comments on this page -comments_disable: true - -# publish date -date: 2021-09-12 13:45:08 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-09-12 13:45:08 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-13-Test-page4.markdown b/zh/_posts/2021-09-13-Test-page4.markdown deleted file mode 100644 index 80d97da3d..000000000 --- a/zh/_posts/2021-09-13-Test-page4.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_4 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, example post] -# thumbnail image for post -#img: ":post_pic1.jpg" -# disable comments on this page -comments_disable: true - -# publish date -date: 2021-09-13 14:47:12 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-09-13 14:47:12 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-14-Test-page5.markdown b/zh/_posts/2021-10-14-Test-page5.markdown deleted file mode 100644 index ad42508f5..000000000 --- a/zh/_posts/2021-10-14-Test-page5.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_5 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, test] -# thumbnail image for post -img: ":post_pic2.jpg" -# disable comments on this page -comments_disable: true - -# publish date -date: 2021-10-14 18:47:35 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-10-14 18:47:35 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-15-Test-page6.markdown b/zh/_posts/2021-10-15-Test-page6.markdown deleted file mode 100644 index b3a83a8f9..000000000 --- a/zh/_posts/2021-10-15-Test-page6.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_autogeneratedsamplecontent_6 -title: _autogeneratedsamplecontent_ - -# post specific -# if not specified, .name will be used from _data/owner/[language].yml -#author: "" -# multiple category is not supported -category: auto generated -# multiple tag entries are possible -tags: [jekyll, sample] -# thumbnail image for post -img: ":post_pic3.jpg" -# disable comments on this page -#comments_disable: true - -# publish date -date: 2021-10-15 19:20:03 +0900 - -# seo -# if not specified, date will be used. -#meta_modify_date: 2021-10-15 19:20:03 +0900 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} - - - -{{ website_info_text_first }} - - - -{{ website_info_text_second }} diff --git a/zh/index.md b/zh/index.md deleted file mode 100644 index b1992f90b..000000000 --- a/zh/index.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -layout: home -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_home - -# image for page specific usage -img: ":home-heading.jpg" -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -# don't forget that this is root index.html. If you disable this, there will be no index.html page to open -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} -{{ website_info_text_first }} - -{{ website_info_text_second }} diff --git a/zh/privacy-policy.md b/zh/privacy-policy.md deleted file mode 100644 index 18d18535a..000000000 --- a/zh/privacy-policy.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -layout: privacy-policy -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_privacy_policy - -# image for page specific usage -#img: ":image.jpg" -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -on_site_search_exclude: true -# exclude from search engines -search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} -{{ page_title_text }} - -{{ website_info_text }} - -{{ website_info_text_second }} diff --git a/zh/query/post-query.json b/zh/query/post-query.json deleted file mode 100644 index f76f2067b..000000000 --- a/zh/query/post-query.json +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: json/post-query - -# optional -# to disable this page, simply set published: false or delete this file -#published: false ---- diff --git a/zh/query/search.json b/zh/query/search.json deleted file mode 100644 index b4c224737..000000000 --- a/zh/query/search.json +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: json/search - -# optional -# to disable this page, simply set published: false or delete this file -#published: false ---- diff --git a/zh/tabs/about.md b/zh/tabs/about.md deleted file mode 100644 index 98d970f88..000000000 --- a/zh/tabs/about.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -layout: about -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_about - -# image for page specific usage -img: ":about.jpg" -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- - -{%- comment -%} Please delete below and place your page content here {%- endcomment -%} - -{%- include util/auto-content-generator.liquid -%} -{{ website_info_text_first }} - -{{ website_info_text_second }} diff --git a/zh/tabs/archive.md b/zh/tabs/archive.md deleted file mode 100644 index 87fc07d60..000000000 --- a/zh/tabs/archive.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: archives -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_archives - -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- diff --git a/zh/tabs/blog/index.html b/zh/tabs/blog/index.html deleted file mode 100644 index 00a51f496..000000000 --- a/zh/tabs/blog/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: post-list -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_post_list - -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- diff --git a/zh/tabs/links.md b/zh/tabs/links.md deleted file mode 100644 index c161cddd2..000000000 --- a/zh/tabs/links.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -layout: links -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_links - -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -#image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -#image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false - - -# you can always move this content to _data/content/ folder -# just create new file at _data/content/links/[language].yml and move content below. -########################################################### -# Links Page Data -########################################################### -page_data: - main: - header: "链接" - info: "链接页面描述。" - - # To change order of the Categories, simply change order. (you don't need to change list order.) - category: - - title: "JekyII / Liquid" - type: id_jekyiiliquid - color: "gray" - - title: "网页设计" - type: id_webdesign - color: "#F4A273" - - title: "编程" - type: id_programming - color: "#62b462" - - list: - - - # programming - - type: id_programming - title: "Stack OverFlow" - url: "https://stackoverflow.com/" - info: "Stack Overflow是一个为专业和热情的程序员提供问答的网站。" - - # jekyiiliquid - - type: id_jekyiiliquid - title: "Jekyll" - url: "https://jekyllrb.com/" - info: "将纯文本转换成静态网站和博客。" - - type: id_jekyiiliquid - title: "Jekyll小册子" - url: "https://cloudcannon.com/community/jekyll-cheat-sheet/" - info: "要记住的Jekyll变量和过滤器非常多,要把它们全部记在脑子里可能很困难。这张小册子可以作为Jekyll所有功能的快速参考。" - - type: id_jekyiiliquid - title: "对于设计师来说的Liquid" - url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Designers" - info: "面向设计师的Liquid GitHub wiki" - - type: id_jekyiiliquid - title: "面向程序员的Liquid" - url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Programmers" - info: "为程序员提供的Liquid的GitHub wiki" - - type: id_jekyiiliquid - title: "Liquid参考资料" - url: "https://shopify.dev/api/liquid/" - info: "Liquid是Shopify创建的一种模板语言,用Ruby编写。它可以作为一个开源项目在GitHub上使用。" - - # webdesign - - type: id_webdesign - title: "W3Schools" - url: "https://www.w3schools.com/" - info: "W3Schools提供所有主要网络语言的免费在线教程、参考和练习。它涵盖了流行的主题,如HTML、CSS、JavaScript、Python、SQL和Java。" ---- diff --git a/zh/tabs/projects.md b/zh/tabs/projects.md deleted file mode 100644 index 547a6cb33..000000000 --- a/zh/tabs/projects.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: projects -# multilingual page pair id, this must pair with translations of this page. (This name must be unique) -lng_pair: id_projects - -# publish date (used for seo) -# if not specified, site.time will be used. -#date: 2022-03-03 12:32:00 +0000 - -# for override items in _data/lang/[language].yml -#title: My title -#button_name: "My button" -# for override side_and_top_nav_buttons in _data/conf/main.yml -#icon: "fa fa-bath" - -# seo -# if not specified, date will be used. -#meta_modify_date: 2022-03-03 12:32:00 +0000 -# check the meta_common_description in _data/owner/[language].yml -#meta_description: "" - -# optional -# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). -# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. -image_viewer_on: true -# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). -# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. -image_lazy_loader_on: true -# exclude from on site search -#on_site_search_exclude: true -# exclude from search engines -#search_engine_exclude: true -# to disable this page, simply set published: false or delete this file -#published: false ---- From 57fdd44aa366b875db2c8ecc778044ac0947a276 Mon Sep 17 00:00:00 2001 From: fairycn <74580422+fairycn@users.noreply.github.com> Date: Fri, 3 Mar 2023 14:30:11 +0800 Subject: [PATCH 3/5] Simplified Chinese Support (#186) --- README-jp.md | 5 +- README-pt.md | 5 +- README-zh.md | 148 ++++++++++++++ README.md | 5 +- _data/conf/main.yml | 2 +- _data/content/projects/zh.yml | 232 ++++++++++++++++++++++ _data/lang/zh.yml | 237 +++++++++++++++++++++++ _data/owner/zh.yml | 93 +++++++++ zh/404.md | 19 ++ zh/_posts/2021-08-10-Test-page1.markdown | 52 +++++ zh/_posts/2021-08-11-Test-page2.markdown | 52 +++++ zh/_posts/2021-09-12-Test-page3.markdown | 52 +++++ zh/_posts/2021-09-13-Test-page4.markdown | 52 +++++ zh/_posts/2021-10-14-Test-page5.markdown | 52 +++++ zh/_posts/2021-10-15-Test-page6.markdown | 52 +++++ zh/index.md | 45 +++++ zh/privacy-policy.md | 46 +++++ zh/query/post-query.json | 7 + zh/query/search.json | 7 + zh/tabs/about.md | 44 +++++ zh/tabs/archive.md | 35 ++++ zh/tabs/blog/index.html | 35 ++++ zh/tabs/links.md | 94 +++++++++ zh/tabs/projects.md | 35 ++++ 24 files changed, 1399 insertions(+), 7 deletions(-) create mode 100644 README-zh.md create mode 100644 _data/content/projects/zh.yml create mode 100644 _data/lang/zh.yml create mode 100644 _data/owner/zh.yml create mode 100644 zh/404.md create mode 100644 zh/_posts/2021-08-10-Test-page1.markdown create mode 100644 zh/_posts/2021-08-11-Test-page2.markdown create mode 100644 zh/_posts/2021-09-12-Test-page3.markdown create mode 100644 zh/_posts/2021-09-13-Test-page4.markdown create mode 100644 zh/_posts/2021-10-14-Test-page5.markdown create mode 100644 zh/_posts/2021-10-15-Test-page6.markdown create mode 100644 zh/index.md create mode 100644 zh/privacy-policy.md create mode 100644 zh/query/post-query.json create mode 100644 zh/query/search.json create mode 100644 zh/tabs/about.md create mode 100644 zh/tabs/archive.md create mode 100644 zh/tabs/blog/index.html create mode 100644 zh/tabs/links.md create mode 100644 zh/tabs/projects.md diff --git a/README-jp.md b/README-jp.md index 7fedadcce..b0bc128f3 100755 --- a/README-jp.md +++ b/README-jp.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Mr. Green Jekyll テーマ @@ -34,7 +34,7 @@ ### Features - 多言語Webサイト - - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語 + - 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語、中国語 - おすすめの言語提供機能 - アイコン有効無効オプション付き自動ナビゲーションボタン追加機能 - `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` 等々のレイアウト @@ -120,6 +120,7 @@ YouTubeの[Mr. Green テーマチュートリアルのプレイリスト](https: - ブラジルポルトガル語の翻訳 [Vitor DallAcqua](https://github.com/fandangos)。 - フランス語の翻訳修正 [Jean-Philippe Morissette](https://github.com/JPMorissette)。 +- 中国語の翻訳 [fairycn](https://github.com/fairycn)。 ### License diff --git a/README-pt.md b/README-pt.md index b422d8298..2061d164d 100644 --- a/README-pt.md +++ b/README-pt.md @@ -1,4 +1,4 @@ -[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [Português do Brasil] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Tema Mr. Green Jekyll @@ -34,7 +34,7 @@ Eu estava criando meu wbesite e pensei em fazê-lo como um modelo que eu poderia ### Recursos disponíveis - Website para vários idiomas. - - Inglês (padrão), Japonês, Português do Brasil, Francês + - Inglês (padrão), Japonês, Português do Brasil, Francês, Chinês - Recomendação de idioma - Auto navegação com possibilidade de habilitar e desabilitar os ícones. - Layout para `Principal`, `Sobre`, `Arquivos`, `Lista-de-Posts`, `Links`, `Projetos` e mais @@ -120,6 +120,7 @@ Obrigado por suas contribuições! - Tradução para o português brasileiro por [Vitor DallAcqua](https://github.com/fandangos). - Correções da tradução para o francês por [Jean-Philippe Morissette](https://github.com/JPMorissette). +- Tradução para o chinês por [fairycn](https://github.com/fairycn). ### Licença diff --git a/README-zh.md b/README-zh.md new file mode 100644 index 000000000..ca8d540d0 --- /dev/null +++ b/README-zh.md @@ -0,0 +1,148 @@ +[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [简体中文] + +## Mr. Green Jekyll 主题 + + + +[GitHub issues](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/issues) +[GitHub forks](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub stars](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt) +[Support me on GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") +[Support me on Patreon](https://patreon.com/MrGreensWorkshop "Support me on Patreon") +[Tip me via Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip me via Ko-fi") + +--- + +
+ screen_mock +

+ 点击这里查看实时演示 +
+ + +### 介绍 + + + +[Mr. Green](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) 是一个多语言主题,由 [Jekyll](https://jekyllrb.com/) 并完全兼容于 [GitHub Pages](https://pages.github.com/). + + + +我打算做我的网站,并认为如果我把它做为一个模板,我可以与开源社区分享它。这就是为什么我决定把它建成一个主题。我很努力地工作,使之成为可能,所以请考虑 [supporting my work](#you-can-support-my-work). 谢谢。 + +### 特色 + +- 多语言网站 + - English (default), Japanese, Brazilian Portuguese +- 推荐的语言建议功能 +- 带图标的自动导航按钮添加器 启用禁用选项 +- “首页”、“关于”、“归档”、“文章列表”、“链接”、“项目”等的布局 +- 颜色方案的切换选项(深色) +- 自动联系选项添加器 +- 自动引用图片(不需要为图片添加完整的路径,只需在前面添加`:`即可)。 +- 图像 lazy 加载器, 图像浏览器 +- 具有创意共享许可的酷炫页脚 +- 帖子的可移动目录模式框 +- 文章共享选项 +- 按类别或标签列出的帖子 +- 帖子的评论 + - [Giscus](https://giscus.app) + - [Disqus](https://disqus.com) +- 可选择编号分页或滚动加载类型 +- 网站导航功能 +- 搜索引擎优化(SEO) + - [Schema Markup](https://schema.org) + - [Open Graph](https://ogp.me/) + - [Twitter](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary) +- 分析(Google Analytics) +- Cookie许可功能 +- 联系表格功能(谷歌表格)。 +- 网站搜索功能 +- 代码压缩,占用空间小 (`HTML` `JS` `SCSS`) +- 移动应用程序支持 +- 对移动设备友好(在安卓和IOS系统上测试) +- 为开发者提供了良好的文件夹结构(在Chrome、Safari、FireFox上测试)。 + +### 安装 + +#### Github页面 + +1. [Fork the repo](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork). +1. Edit \_config.yml and change `url` like below and push changes. + + ```yaml + url: "https://your_github_user_name.github.io" + ``` + +1. 将 repo 的名称重命名为 `your_github_user_name.github.io` +1. 在 repo 上的标签检查部署状态 `Actions` . +1. 当它变成绿色时,您的站点就启动并运行了 `https://your_github_user_name.github.io` + +#### Local build + +1. [Install Jekyll](https://jekyllrb.com/docs/installation/) to your OS +1. Clone or [download](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest) the repo, in command prompt go to the folder run `bundle install` command +1. 构建使用 `bundle exec jekyll serve --watch --host 0.0.0.0 --safe` command + - with `--host 0.0.0.0` 参数您可以从同一个局域网访问web服务器. + - with `--safe` 参数你可以确保没有第三方插件添加。(用于Github页面开发) +1. 您的页面将在 `0.0.0.0:4000/` 地址. + +### Documentation + +查看详情 [Mr. Green theme tutorials playlist](https://www.youtube.com/playlist?list=PLAymxPbYHgl-fFy5can7uZBMJtFWVcphD) 在 YouTube + +### 功劳 + +我想感谢这些项目,它们给了我一个建立网站的机会。 + +- [Jekyll](https://jekyllrb.com/) is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. It is a wonderful project which is maintained by volunteers. + +- [GitHub Pages](https://pages.github.com/) Hosted directly from your GitHub repository. Just push the changes and the site will be automatically generated. + +在我从事这个项目时,我发现一些有用的网站。 [links page](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/tabs/links.html) + +### 你可以支持我的工作 + +从零开始创建项目需要大量的时间。如果你考虑支持我,使我能够继续这样的项目,为大家创造新的内容,我将非常感激。 + +- You can be one of my [GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") (monthly or one time) +- You can be one of my [Patreons](https://patreon.com/MrGreensWorkshop "Be my Patron") (monthly) +- You can tip me via [Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip Me via Ko-fi") (one time) + +### 贡献 + +欢迎拉取Requests。请检查Issues和Request模板中的说明。 + +### 贡献者 + +感谢你们的贡献! + +- Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). + +### License + +正如它所说,在 [MIT license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt), 你可以在任何地方使用这个主题,只要你包括许可证和版权声明。 + +`Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com` + +请添加链接到我的页面或在页脚留下 "Pwrd by Mr. Green" + +谢谢你! + +### Other Licenses + +Mr. Green Jekyll 主题包含了下面写的库。没有这些库,我不可能使这个项目成为可能。 + +| Library | file | +| :----------------------------------- | ---- | +| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0), Copyright [OpenJS Foundation](https://openjsf.org) and other contributors. jQuery is distributed under the terms of the MIT License. | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) | +| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), Copyright (c) 2011-2016 Twitter, Inc. Bootstrap is distributed under the terms of the MIT License. | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) | +| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), Copyright (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap Table of Contents is distributed under the terms of the MIT License. | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) | +| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), Copyright (c) 2017 Dave Gandy. The Font Awesome font is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL). Font Awesome CSS, LESS, and Sass files are distributed under the terms of the [MIT License](https://opensource.org/licenses/mit-license.html). | [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) | +| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), Copyright (c) 2017 Apoorv Saxena. Lozad.js is distributed under the terms of the MIT License. | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) | +| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License. | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) | +| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), Copyright (c) 2015 Christian Fei. Simple-Jekyll-Search is distributed under the terms of the MIT License. | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) | +| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), Copyright (c) 2014 Anatol Broder. Compress HTML in Jekyll is distributed under the terms of the MIT License. | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) | + +[Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) diff --git a/README.md b/README.md index 4f8334d88..bc9f18c8f 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] +[English] [[日本語](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)] [[简体中文](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-zh.md#readme)] ## Mr. Green Jekyll Theme @@ -34,7 +34,7 @@ I was going to make my website and thought if I did it as a template, I could sh ### Features - Multilingual web site - - English (default), Japanese, Brazilian Portuguese, French + - English (default), Japanese, Brazilian Portuguese, French, Chinese - Recommended language offer feature - Auto Navigation Button adder with icon enable disable options - Layouts for `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` and more @@ -120,6 +120,7 @@ Thank you for your contributions! - Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). - French translation corrections by [Jean-Philippe Morissette](https://github.com/JPMorissette). +- Chinese translation by [fairycn](https://github.com/fairycn). ### License diff --git a/_data/conf/main.yml b/_data/conf/main.yml index fb542fb72..513b717f3 100644 --- a/_data/conf/main.yml +++ b/_data/conf/main.yml @@ -25,7 +25,7 @@ default_lng: en # to prevent adding languages with no folder # single language disables language switch # language order is linked to array order -language_switch_lang_list: [en, ja, pt, fr] +language_switch_lang_list: [en, ja, pt, fr, zh] # if the opened page is not in the user's language list, # suggest language(s) matching with the one(s) in browser language list and user language list. diff --git a/_data/content/projects/zh.yml b/_data/content/projects/zh.yml new file mode 100644 index 000000000..e4534a860 --- /dev/null +++ b/_data/content/projects/zh.yml @@ -0,0 +1,232 @@ +# you can move this content to front matter of [language]/tabs/projects.md +########################################################### +# Projects Page Data +########################################################### +page_data: + main: + header: "项目" + info: "你的项目页面描述。" + text_color: "白色" + # if you don't want to use background image, comment it. back_color will be activated. + img: ":projects-heading.jpg" + back_color: "浅蓝色" + + category: + - title: "示例" + type: id_example + color: "gray" + - title: "图片" + type: id_picture + color: "#62b462" + - title: "引用" + type: id_quote + color: "#2FD0ED" + + list: + # example + - type: id_example + project_name: "项目示例" + project_excerpt: "示例" + img: ":project1_thumb.jpg" + img_title: "img title1" + date: "2021-03-13" + post: | + # Examples + + 这是一个显示Mr.Green Jekyll主题的markdown相关样式的例子页面。 + + ### Headings (centered) + {:data-align="center"} + + # Heading 1 + + ## Heading 2 + + ### Heading 3 + + #### Heading 4 + + ##### Heading 5 + + ###### Heading 6 + + *** + + ### Paragraphs + + #### Paragraph + + **William Shakespeare**, Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + + #### Texts + + Quoted text `Hello world` + + Bold text **Hello world** + + Italic text _Hello world_ + + kbd text Hello world + + #### Blockquote + + > **William Shakespeare**, Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + + ### Link + + This is [Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme), a simple theme built for [Jekyll](https://jekyllrb.com/). + + ### Picture + + ![such a lovely place](:projects-heading.jpg) + + ### Picture (centered) + + ![such a lovely place](:project1_thumb.jpg){:data-align="center"} + + ### Lists + + - Apple + - Banana + - Orange + + 1. Fruits + 1. Apples + - Granny Smith + - Mutsu + 1. Bananas + - Cavendish + - Red + 1. Vegetables + + *** + + ### Tables + + #### Small Table (centered) + + | Fruits(not aligned) | Alignment (centered) | num (right align) | + | ------------------- | :------------------: | ----------------: | + | Apple | centered | 9999 | + | Banana | centered long text | 999 | + | Orange | centered | 99 | + | Lemon | centered | 9 | + {:data-align="center"} + + #### Wide Table (centered) + + scroll enabled when page is narrow + + | Fruits | num (left align) | num (right align) | num | num | num | + | ------ | :--------------- | ----------------: | ---- | ---- | ---- | + | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | + | Banana | 111 | 111 | 222 | 333 | 444 | + | Orange | 11 | 11 | 22 | 33 | 44 | + | Lemon | 1 | 1 | 2 | 3 | 4 | + {:data-align="center"} + + #### Wider Table + + scroll enabled when page is narrow + + | Fruits | num (left align) | num (right align) | num | num | num | num | num | num | + | ------ | :--------------- | ----------------: | ---- | ---- | ---- | ---- | ---- | ---- | + | Apple | 1111 | 1111 | 2222 | 3333 | 4444 | 5555 | 6666 | 7777 | + | Banana | 111 | 111 | 222 | 333 | 444 | 555 | 666 | 777 | + | Orange | 11 | 11 | 22 | 33 | 44 | 55 | 66 | 77 | + | Lemon | 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | + + ### Code + + #### Quote + + ```python + for i in range(5, 10): + print(i) + ``` + + # picture + - type: id_picture + project_name: "Example Project" + project_excerpt: "Picture" + img: ":project2_thumb.jpg" + img_title: "img title2" + date: "2021-04-23" + post: | + # Title + This is project content. + + ![Image](:project2_thumb.jpg) + + # quote + - type: id_quote + project_name: "Example Project" + project_excerpt: "William Shakespeare" + #img: ":project1_thumb.jpg" + #img_title: "img title3" + date: "2021-05-27" + post: | + Let me not to the marriage of true minds + Admit impediments. Love is not love + Which alters when it alteration finds, + Or bends with the remover to remove. + O no, it is an ever-fixed mark + That looks on tempests and is never shaken; + It is the star to every wand'ring barque, + Whose worth's unknown, although his height be taken. + Love's not Time's fool, though rosy lips and cheeks + Within his bending sickle's compass come; + Love alters not with his brief hours and weeks, + But bears it out even to the edge of doom. + If this be error and upon me proved, + I never writ, nor no man ever loved. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Albert Einstein" + img: ":project2_thumb.jpg" + img_title: "img title4" + date: "2021-06-08" + post: | + Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Mae West" + img: ":project1_thumb.jpg" + img_title: "img title5" + date: "2021-08-20" + post: | + You only live once, but if you do it right, once is enough. + - type: id_quote + project_name: "示例项目" + project_excerpt: "Mahatma Gandhi " + img: ":project2_thumb.jpg" + img_title: "img title6" + date: "2021-12-20" + post: | + 改变世界,从改变自己开始 diff --git a/_data/lang/zh.yml b/_data/lang/zh.yml new file mode 100644 index 000000000..a1e913087 --- /dev/null +++ b/_data/lang/zh.yml @@ -0,0 +1,237 @@ +# Mr. Green Jekyll Theme (https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) +# Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com +# Copyright (c) 2023 fairycn https://github.com/fairycn +# Licensed under MIT + +lng: + name: 简体中文 + # based on ISO_639-1 https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes + code: zh + # specifically needed for open-graph meta og:locale. if open_graph or html_lng_with_country_code not enabled in _data/conf/main.yml, it's not necessary. + # For html tags, you can enable or disable using html_lng_with_country_code defined in _data/conf/main.yml + # based on ISO_3166-1 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + country: CN + switch_title: Cn + offer: + title: 语言 + msg_page: 显示简体中文页面 + # if page translation is not available, use this. + msg_site: 简体中文页面 + +date: + # if %b is used in the long format, it will be replaced with the corresponding item in 'months' list below. + long: "%Y年%m月%d日" + day: "%d日" + year: "%Y年" + # months itself also used in Archive page. + months: [1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月] + +not_found: + header: 未找到页面 + line1: 找不到您请求的页面。 + line2: 尝试菜单或网站搜索(如果可用)。 + +no_translation_tooltip: 无翻译 + +navigation: + contact_header: 联系方式 + +color_scheme_switch_tooltip: 颜色方案 + +search: + placeholder: 搜索 + noResultText: 没有找到任何结果。 + +image_viewer: + load_error: 该图像无法加载。 + +copyright: + additional_text: " 保留所有权利。" + +creative_commons: + some_rights_reserved: 保留部分权利。 + # check _data/owner/[language].yml for license type. + by: 除非另有说明,本网站的内容是以知识共享署名4.0国际许可协议授权的。 + by-nd: 除非另有说明,本网站上的内容采用知识共享署名-无衍生品4.0国际许可协议进行许可。 + by-sa: 除非另有说明,本网站的内容采用知识共享署名-相同方式共享4.0国际许可协议进行许可。 + by-nc: 除非另有说明,本网站的内容采用知识共享署名-非商业性4.0国际许可协议进行许可。 + by-nc-nd: 除非另有说明,本网站的内容采用知识共享署名-非商业性-非衍生品4.0国际许可协议进行许可。 + by-nc-sa: 除非另有说明,本网站的内容采用知识共享署名-非商业性-相同方式共享4.0国际许可协议进行许可。 + +# for 404 layout +not-found: + title: "404" + +# for post layout +post: + read_time: + unit: " min" + text: " 阅读" + # c for char w for word + word_char: w + # char or words per minute + per_minute: 200 + pager_buttons: + older_post: "← 旧帖子" + newer_post: "新帖子 →" + first_post: 最前面 + last_post: 末尾 + comments: + noscript: 请启用JavaScript以查看评论。 + disqus: + count_title: 评论 + click_to_load: "加载评论" + consent: + title: 评论 (Disqus.com) + text: > + 评论功能由第三方托管。通过显示外部内容,您接受disqus.com的$terms和$privacy_policy。 +
如果您希望退出定向广告,请打开$settings_link,然后单击“退出”按钮并关闭。返回此处并加载注释。 + terms_link_text: Terms of Service + privacy_link_text: 隐私政策 + settings_link_text: 此链接 + button: + load_once: 仅显示此时间 + load_and_do_not_ask_again: 始终显示 + table_of_contents: + heading: 目录 + tooltip: + move: 拖动移动 + close: 关闭 + share: + heading: 分享到 + link_copied: 链接已复制! + tooltip: + # keys need to match with _data/share.yml + twitter: Twitter + facebook: Facebook + telegram: Telegram + linkedin: LinkedIn + email: 电子邮件 + copy_link: 复制链接 + +# for post-list layout +post-list: + title: 博客 + button_name: 博客 + upside_down_tabs: + tab: + all: All + categories: 分类 + tags: 标签 + years: 年 + clear: 清除 + close: 关闭 + tooltip: + clear: 清除 + close: 关闭 + msg: + property_list: + # keys need to match with /query/post-query.json + tags: 标签 + category: 类别 + year: 年 + # you can use these wildcards, {property} {value} {thumb} + resultFoundTitleFormat: "{property} : {thumb}" + +# for home layout +home: + title: 欢迎 + button_name: 首页 + new_posts_title: 新文章 + new_posts_show_more_button: 阅读更多信息 ... + +# for archives layout +archives: + title: 归档 + button_name: 归档 + page_header: 归档 + +# for about layout +about: + title: 关于 + button_name: 关于 + email_title: 电子邮件 + +# for links layout +links: + title: 链接 + button_name: 链接 + link_text: 网站 + info_text: 信息 + +# for projects layout +projects: + title: 项目 + button_name: 项目 + read_more_text: 阅读更多信息 + read_less_text: 阅读较少信息 + +# for privacy-policy layout +privacy-policy: + title: &privacy_policy_title 隐私政策 + +# constants to be replaced for +constants: + greetings: 你好 + welcome: 欢迎 + sample: 样本 + +# for contact form +contact_form: + button_name: 联系方式 + formLoadingText: 正在加载联系方式。。。 + +# for cookie consent +cookie_consent: + privacy_policy_link_text: *privacy_policy_title + side_nav_setting_button_tooltip: &cookie_settings Cookie 设置 + panel_bar: + msg: > + 本网站使用cookie优化网站功能。 + 它将在你的批准下被激活。 + privacy_msg: 检查 $privacy_link. + buttons: + accept: &accept_button 允许所有 + settings: 自定义 + deny: &deny_button 拒绝 + panel_settings: + title: *cookie_settings + msg: > + 本网站使用cookie优化网站功能。 + 它将在您的批准下激活。请单击下面的每个项目以了解cookie策略。 + privacy_msg: 检查 $privacy_link. + buttons: + accept: *accept_button + save: 允许选择 + deny: *deny_button + always_active: 始终处于启动状态 + consent_types: + necessary: + title: 完全意义上的必要cookies + info: > + 这些cookies是网站功能所必需的,不能被禁用。 + 它们通常在网站功能如颜色方案等改变时被设置。 + 这些cookies不存储任何个人可识别信息。 + $gtag_info + analytics: + title: 性能类 、cookies #Performance and analytics cookies + info: $gtag_info + preferences: + title: 功能类cookies + info: $gtag_info + advertising: + title: 定位和广告cookies + info: $gtag_info + gtag_info: + # from https://support.google.com/tagmanager/answer/10718549#consent-types + ad_storage: > + 启用与广告有关的存储(如cookies)。 + analytics_storage: > + 启用与分析有关的存储(如cookies),例如访问时间。 + functionality_storage: > + 启用支持网站或应用程序功能的存储,例如语言设置。 + personalization_storage: > + 启用与个性化相关的存储,例如视频推荐。 + security_storage: > + 启用与安全有关的存储,如认证功能, + 预防欺诈,以及其他用户保护。 diff --git a/_data/owner/zh.yml b/_data/owner/zh.yml new file mode 100644 index 000000000..ad4177f99 --- /dev/null +++ b/_data/owner/zh.yml @@ -0,0 +1,93 @@ +########################################################### +# Owner's Personal Information +########################################################### +# This is your brand name +brand: "你的站点名称" + +# text below the brand name +brand_sub_text: "$site_sample" + +# used for seo meta post author (if it's not defined in post) +name: "你的名字" + +# home page top header texts +home: + # you can also use $site_brand, $site_greetings, $site_welcome in line1 and line2 for replacing texts. + top_header_line1: "$site_welcome" + # if commented, top header will be a single line + top_header_line2: "$site_brand" + +# about page sub title +about: + sub_title: "$site_sample" + +# if you don't want to add copyright year, comment or leave it blank. +# the year during which the claimed copyright for the work was first asserted. +copyright_start_year: "2022" + +# make sure creative_commons.enable is true in _data/conf/main.yml file +creative_commons: + # choose your license from https://creativecommons.org/choose/?lang=en + # then check link address below Selected License and make sure it matches with the list below + + # select one below + # 1. by Attribution 4.0 International + # 2. by-nd Attribution-NoDerivatives 4.0 International + # 3. by-sa Attribution-ShareAlike 4.0 International + # 4. by-nc Attribution-NonCommercial 4.0 International + # 5. by-nc-nd Attribution-NonCommercial-NoDerivatives 4.0 International + # 6. by-nc-sa Attribution-NonCommercial-ShareAlike 4.0 International + license_type: "by-sa" + +# seo meta this is needed for each language +# If meta_description is not defined in front matter, it's created from (post / page) content, +# if it has no content, this will be used for page description. It is also used in manifest.json +meta_common_description: "你的自述。" + +# contact options (side nav bottom and about page) +# the order of the items will be shown as here. +# comment to remove any contact item +contacts: + #- github: "" + #- email: "" + #- linkedin: "" + #- twitter: "" + #- mastodon: "" + #- instagram: "" + #- youtube: "" + #- facebook: "" +# to add more, check the _data/const/contact.yml file +# - your_new_contact: "" + +# make sure one of comment engine is enabled in _data/conf/posts.yml file +comments: + # Create a Disqus account and fill out the items below. + disqus: + shortname: "" + # To use Giscus, go to https://giscus.app and look for the "Configuration". + # - Enter your repository name, and it will create the following settings for you under "Enable giscus". + # - Get the corresponding items and fill in the items below. + # For other settings, please check the _data/conf/posts.yml file. + giscus: + repo: "" + repo-id: "" + category: "" + category-id: "" + +# if no id is provided, this feature will be disabled. +# make sure your environment does not match with google.analytics.ignore in _data/conf/main.yml +google_analytics_id: "" + +# there are different ways to verify web page. One is adding this as meta into html. +# make sure you set meta.google_site_verify: true in _data/conf/main.yml +# make sure your environment does not match with google.site_verification.ignore in _data/conf/main.yml +google_site_verification: "" + +# make sure you set contact_form.enable: true in _data/conf/main.yml +# - Create a form in Google Forms. You can use the template named "Contact Information". +# - Customize the form colors and response validation according to your needs. +# - To disable forced Google sign-in, go to "Settings > Response" and switch off the "Limit to 1 response". +# - Click the "Send" button at the top right. +# - Click the link icon from "Send via" list and copy the link. +# - Then paste the link between double quotes. +google_forms_contact_form_url: "" diff --git a/zh/404.md b/zh/404.md new file mode 100644 index 000000000..c53cadb06 --- /dev/null +++ b/zh/404.md @@ -0,0 +1,19 @@ +--- +layout: not-found +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_not_found + +# optional +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false + +# page specific settings +# add folders to redirected to 404, which does not have index.html +redirect_from: + - /zh/tabs/ + - /zh/query/ +--- diff --git a/zh/_posts/2021-08-10-Test-page1.markdown b/zh/_posts/2021-08-10-Test-page1.markdown new file mode 100644 index 000000000..ebee6be47 --- /dev/null +++ b/zh/_posts/2021-08-10-Test-page1.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_1 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, example post] +# thumbnail image for post +img: ":post_pic1.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-08-10 11:32:53 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-08-10 11:32:53 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-08-11-Test-page2.markdown b/zh/_posts/2021-08-11-Test-page2.markdown new file mode 100644 index 000000000..6e9abcb21 --- /dev/null +++ b/zh/_posts/2021-08-11-Test-page2.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_2 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, test] +# thumbnail image for post +img: ":post_pic2.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-08-11 12:35:04 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-08-11 12:35:04 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-12-Test-page3.markdown b/zh/_posts/2021-09-12-Test-page3.markdown new file mode 100644 index 000000000..6aa562fec --- /dev/null +++ b/zh/_posts/2021-09-12-Test-page3.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_3 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, sample] +# thumbnail image for post +img: ":post_pic3.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-09-12 13:45:08 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-09-12 13:45:08 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-09-13-Test-page4.markdown b/zh/_posts/2021-09-13-Test-page4.markdown new file mode 100644 index 000000000..80d97da3d --- /dev/null +++ b/zh/_posts/2021-09-13-Test-page4.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_4 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, example post] +# thumbnail image for post +#img: ":post_pic1.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-09-13 14:47:12 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-09-13 14:47:12 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-14-Test-page5.markdown b/zh/_posts/2021-10-14-Test-page5.markdown new file mode 100644 index 000000000..ad42508f5 --- /dev/null +++ b/zh/_posts/2021-10-14-Test-page5.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_5 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, test] +# thumbnail image for post +img: ":post_pic2.jpg" +# disable comments on this page +comments_disable: true + +# publish date +date: 2021-10-14 18:47:35 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-10-14 18:47:35 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/_posts/2021-10-15-Test-page6.markdown b/zh/_posts/2021-10-15-Test-page6.markdown new file mode 100644 index 000000000..b3a83a8f9 --- /dev/null +++ b/zh/_posts/2021-10-15-Test-page6.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_6 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, sample] +# thumbnail image for post +img: ":post_pic3.jpg" +# disable comments on this page +#comments_disable: true + +# publish date +date: 2021-10-15 19:20:03 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-10-15 19:20:03 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/index.md b/zh/index.md new file mode 100644 index 000000000..b1992f90b --- /dev/null +++ b/zh/index.md @@ -0,0 +1,45 @@ +--- +layout: home +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_home + +# image for page specific usage +img: ":home-heading.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +# don't forget that this is root index.html. If you disable this, there will be no index.html page to open +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ website_info_text_first }} + +{{ website_info_text_second }} diff --git a/zh/privacy-policy.md b/zh/privacy-policy.md new file mode 100644 index 000000000..18d18535a --- /dev/null +++ b/zh/privacy-policy.md @@ -0,0 +1,46 @@ +--- +layout: privacy-policy +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_privacy_policy + +# image for page specific usage +#img: ":image.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ page_title_text }} + +{{ website_info_text }} + +{{ website_info_text_second }} diff --git a/zh/query/post-query.json b/zh/query/post-query.json new file mode 100644 index 000000000..f76f2067b --- /dev/null +++ b/zh/query/post-query.json @@ -0,0 +1,7 @@ +--- +layout: json/post-query + +# optional +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/query/search.json b/zh/query/search.json new file mode 100644 index 000000000..b4c224737 --- /dev/null +++ b/zh/query/search.json @@ -0,0 +1,7 @@ +--- +layout: json/search + +# optional +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/about.md b/zh/tabs/about.md new file mode 100644 index 000000000..98d970f88 --- /dev/null +++ b/zh/tabs/about.md @@ -0,0 +1,44 @@ +--- +layout: about +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_about + +# image for page specific usage +img: ":about.jpg" +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} +{{ website_info_text_first }} + +{{ website_info_text_second }} diff --git a/zh/tabs/archive.md b/zh/tabs/archive.md new file mode 100644 index 000000000..87fc07d60 --- /dev/null +++ b/zh/tabs/archive.md @@ -0,0 +1,35 @@ +--- +layout: archives +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_archives + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/blog/index.html b/zh/tabs/blog/index.html new file mode 100644 index 000000000..00a51f496 --- /dev/null +++ b/zh/tabs/blog/index.html @@ -0,0 +1,35 @@ +--- +layout: post-list +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_post_list + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- diff --git a/zh/tabs/links.md b/zh/tabs/links.md new file mode 100644 index 000000000..c161cddd2 --- /dev/null +++ b/zh/tabs/links.md @@ -0,0 +1,94 @@ +--- +layout: links +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_links + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false + + +# you can always move this content to _data/content/ folder +# just create new file at _data/content/links/[language].yml and move content below. +########################################################### +# Links Page Data +########################################################### +page_data: + main: + header: "链接" + info: "链接页面描述。" + + # To change order of the Categories, simply change order. (you don't need to change list order.) + category: + - title: "JekyII / Liquid" + type: id_jekyiiliquid + color: "gray" + - title: "网页设计" + type: id_webdesign + color: "#F4A273" + - title: "编程" + type: id_programming + color: "#62b462" + + list: + - + # programming + - type: id_programming + title: "Stack OverFlow" + url: "https://stackoverflow.com/" + info: "Stack Overflow是一个为专业和热情的程序员提供问答的网站。" + + # jekyiiliquid + - type: id_jekyiiliquid + title: "Jekyll" + url: "https://jekyllrb.com/" + info: "将纯文本转换成静态网站和博客。" + - type: id_jekyiiliquid + title: "Jekyll小册子" + url: "https://cloudcannon.com/community/jekyll-cheat-sheet/" + info: "要记住的Jekyll变量和过滤器非常多,要把它们全部记在脑子里可能很困难。这张小册子可以作为Jekyll所有功能的快速参考。" + - type: id_jekyiiliquid + title: "对于设计师来说的Liquid" + url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Designers" + info: "面向设计师的Liquid GitHub wiki" + - type: id_jekyiiliquid + title: "面向程序员的Liquid" + url: "https://github.com/Shopify/liquid/wiki/Liquid-for-Programmers" + info: "为程序员提供的Liquid的GitHub wiki" + - type: id_jekyiiliquid + title: "Liquid参考资料" + url: "https://shopify.dev/api/liquid/" + info: "Liquid是Shopify创建的一种模板语言,用Ruby编写。它可以作为一个开源项目在GitHub上使用。" + + # webdesign + - type: id_webdesign + title: "W3Schools" + url: "https://www.w3schools.com/" + info: "W3Schools提供所有主要网络语言的免费在线教程、参考和练习。它涵盖了流行的主题,如HTML、CSS、JavaScript、Python、SQL和Java。" +--- diff --git a/zh/tabs/projects.md b/zh/tabs/projects.md new file mode 100644 index 000000000..547a6cb33 --- /dev/null +++ b/zh/tabs/projects.md @@ -0,0 +1,35 @@ +--- +layout: projects +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_projects + +# publish date (used for seo) +# if not specified, site.time will be used. +#date: 2022-03-03 12:32:00 +0000 + +# for override items in _data/lang/[language].yml +#title: My title +#button_name: "My button" +# for override side_and_top_nav_buttons in _data/conf/main.yml +#icon: "fa fa-bath" + +# seo +# if not specified, date will be used. +#meta_modify_date: 2022-03-03 12:32:00 +0000 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- From 42e30c41db8605c1485876fca5fd3c22c970002a Mon Sep 17 00:00:00 2001 From: MrGreensWorkshop <76992231+MrGreensWorkshop@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:37:39 +0900 Subject: [PATCH 4/5] Updating branch 'main' into feature_chinese_language_support --- zh/_posts/2021-11-16-Test-page7.markdown | 52 ++++++++++++++++++++++++ zh/privacy-policy.md | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 zh/_posts/2021-11-16-Test-page7.markdown diff --git a/zh/_posts/2021-11-16-Test-page7.markdown b/zh/_posts/2021-11-16-Test-page7.markdown new file mode 100644 index 000000000..e4cf710d4 --- /dev/null +++ b/zh/_posts/2021-11-16-Test-page7.markdown @@ -0,0 +1,52 @@ +--- +# multilingual page pair id, this must pair with translations of this page. (This name must be unique) +lng_pair: id_autogeneratedsamplecontent_7 +title: _autogeneratedsamplecontent_ + +# post specific +# if not specified, .name will be used from _data/owner/[language].yml +#author: "" +# multiple category is not supported +category: auto generated +# multiple tag entries are possible +tags: [jekyll, sample] +# thumbnail image for post +img: ":post_pic3.jpg" +# disable comments on this page +#comments_disable: true + +# publish date +date: 2021-11-16 20:21:03 +0900 + +# seo +# if not specified, date will be used. +#meta_modify_date: 2021-11-16 20:21:03 +0900 +# check the meta_common_description in _data/owner/[language].yml +#meta_description: "" + +# optional +# please use the "image_viewer_on" below to enable image viewer for individual pages or posts (_posts/ or [language]/_posts folders). +# image viewer can be enabled or disabled for all posts using the "image_viewer_posts: true" setting in _data/conf/main.yml. +#image_viewer_on: true +# please use the "image_lazy_loader_on" below to enable image lazy loader for individual pages or posts (_posts/ or [language]/_posts folders). +# image lazy loader can be enabled or disabled for all posts using the "image_lazy_loader_posts: true" setting in _data/conf/main.yml. +#image_lazy_loader_on: true +# exclude from on site search +#on_site_search_exclude: true +# exclude from search engines +#search_engine_exclude: true +# to disable this page, simply set published: false or delete this file +#published: false +--- + +{%- comment -%} Please delete below and place your page content here {%- endcomment -%} + +{%- include util/auto-content-generator.liquid -%} + + + +{{ website_info_text_first }} + + + +{{ website_info_text_second }} diff --git a/zh/privacy-policy.md b/zh/privacy-policy.md index 18d18535a..4e891f49f 100644 --- a/zh/privacy-policy.md +++ b/zh/privacy-policy.md @@ -41,6 +41,6 @@ search_engine_exclude: true {%- include util/auto-content-generator.liquid -%} {{ page_title_text }} -{{ website_info_text }} +{{ website_info_text_first | replace: website_greeting_text, '' }} {{ website_info_text_second }} From dd822c36c785e6e289687f01d01f53ccd7c4a94c Mon Sep 17 00:00:00 2001 From: MrGreensWorkshop <76992231+MrGreensWorkshop@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:48:25 +0900 Subject: [PATCH 5/5] Remaining translations --- README-fr.md | 3 +- README-zh.md | 90 ++++++++++++++++++----------------- README.md | 2 +- _data/content/projects/zh.yml | 6 +-- _data/lang/zh.yml | 24 +++++----- 5 files changed, 65 insertions(+), 60 deletions(-) diff --git a/README-fr.md b/README-fr.md index 0251816ed..bbff62db6 100755 --- a/README-fr.md +++ b/README-fr.md @@ -34,7 +34,7 @@ J'allais créer mon site Web et j'ai pensé que si je le faisais en tant que gab ### Caractéristiques - Site Internet multilingue - - Anglais (par défaut), japonais, portugais brésilien, français + - Anglais (par défaut), japonais, portugais brésilien, français, chinois - Fonction de suggestion de langue - Ajout de boutons de navigation automatique avec icône, options d'activation et de désactivation - Mises en page pour `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` et plus @@ -120,6 +120,7 @@ Merci pour vos contributions! - Traduction portugaise brésilienne par [Vitor DallAcqua](https://github.com/fandangos). - Corrections de la traduction française par [Jean-Philippe Morissette](https://github.com/JPMorissette). +- Traduction chinoise par [fairycn](https://github.com/fairycn). ### Licence diff --git a/README-zh.md b/README-zh.md index f7590af2d..03c3cec33 100644 --- a/README-zh.md +++ b/README-zh.md @@ -5,12 +5,12 @@ [GitHub issues](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/issues) -[GitHub forks](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) -[GitHub stars](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub forks](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) +[GitHub stars](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme) [GitHub license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt) -[Support me on GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") -[Support me on Patreon](https://patreon.com/MrGreensWorkshop "Support me on Patreon") -[Tip me via Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip me via Ko-fi") +[在 GitHub 上支持我](https://github.com/sponsors/MrGreensWorkshop "在 GitHub 上支持我") +[成为我的赞助人](https://patreon.com/MrGreensWorkshop "成为我的赞助人") +[通过 Ko-fi 给我提示](https://ko-fi.com/MrGreensWorkshop "通过 Ko-fi 给我提示") --- @@ -29,12 +29,12 @@ -我打算做我的网站,并认为如果我把它做为一个模板,我可以与开源社区分享它。这就是为什么我决定把它建成一个主题。我很努力地工作,使之成为可能,所以请考虑 [supporting my work](#you-can-support-my-work). 谢谢。 +我打算做我的网站,并认为如果我把它做为一个模板,我可以与开源社区分享它。这就是为什么我决定把它建成一个主题。我很努力地工作,使之成为可能,[请考虑成为一名赞助者](#you-can-support-my-work). 谢谢。 ### 特色 - 多语言网站 - - English (default), Japanese, Brazilian Portuguese + - 英语(默认)、日语、巴西葡萄牙语、法语、简体中文 - 推荐的语言建议功能 - 带图标的自动导航按钮添加器 启用禁用选项 - “首页”、“关于”、“归档”、“文章列表”、“链接”、“项目”等的布局 @@ -68,81 +68,83 @@ #### Github页面 -1. [Fork the repo](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork). -1. Edit \_config.yml and change `url` like below and push changes. +1. [分叉仓库](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork)。 +1. 编辑 \_config.yml 并更改 `url`(如下所示)并推送更改。 ```yaml url: "https://your_github_user_name.github.io" ``` -1. 将 repo 的名称重命名为 `your_github_user_name.github.io` -1. 在 repo 上的标签检查部署状态 `Actions` . +1. 将 repo 的名称重命名为 `your_github_user_name.github.io`。 +1. 在 repo 上的标签检查部署状态 `Actions`。 1. 当它变成绿色时,您的站点就启动并运行了 `https://your_github_user_name.github.io` -#### Local build +#### 本地构建 -1. [Install Jekyll](https://jekyllrb.com/docs/installation/) to your OS -1. Clone or [download](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest) the repo, in command prompt go to the folder run `bundle install` command -1. 构建使用 `bundle exec jekyll serve --watch --host 0.0.0.0 --safe` command - - with `--host 0.0.0.0` 参数您可以从同一个局域网访问web服务器. - - with `--safe` 参数你可以确保没有第三方插件添加。(用于Github页面开发) -1. 您的页面将在 `0.0.0.0:4000/` 地址. +1. 将 [Jekyll](https://jekyllrb.com/docs/installation/) 安装到您的操作系统。 +1. 克隆或 [下载](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest) 存储库,在命令提示符下转到文件夹运行 `bundle install` 命令。 +1. 构建使用 `bundle exec jekyll serve --watch --host 0.0.0.0 --safe` 命令。 + - 和 `--host 0.0.0.0` 参数您可以从同一个局域网访问web服务器。 + - 和 `--safe` 参数你可以确保没有第三方插件添加。(用于Github页面开发) +1. 您的页面将在 `0.0.0.0:4000/` 地址。 -### Documentation +### 文档 -查看详情 [Mr. Green theme tutorials playlist](https://www.youtube.com/playlist?list=PLAymxPbYHgl-fFy5can7uZBMJtFWVcphD) 在 YouTube +查看详情 [Mr. Green Jekyll 主题教程播放列表](https://www.youtube.com/playlist?list=PLAymxPbYHgl-fFy5can7uZBMJtFWVcphD) 在 YouTube。 ### 功劳 我想感谢这些项目,它们给了我一个建立网站的机会。 -- [Jekyll](https://jekyllrb.com/) is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. It is a wonderful project which is maintained by volunteers. +- [Jekyll](https://jekyllrb.com/) 是一个静态站点生成器。它采用您最喜欢的标记语言编写的文本并使用布局来创建静态网站。您可以调整网站的外观、URL、页面上显示的数据等等。这是一个由志愿者维护的精彩项目。 -- [GitHub Pages](https://pages.github.com/) Hosted directly from your GitHub repository. Just push the changes and the site will be automatically generated. +- [GitHub Pages](https://pages.github.com/) 直接从您的 GitHub 存储库托管。只需推送更改,网站就会自动生成。 -在我从事这个项目时,我发现一些有用的网站。 [links page](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/tabs/links.html) +在我从事这个项目时,我发现一些有用的网站。 [链接页面](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/tabs/links.html) ### 你可以支持我的工作 从零开始创建项目需要大量的时间。如果你考虑支持我,使我能够继续这样的项目,为大家创造新的内容,我将非常感激。 -- You can be one of my [GitHub Sponsors](https://github.com/sponsors/MrGreensWorkshop "Support me on GitHub Sponsors") (monthly or one time) -- You can be one of my [Patreons](https://patreon.com/MrGreensWorkshop "Be my Patron") (monthly) -- You can tip me via [Ko-fi](https://ko-fi.com/MrGreensWorkshop "Tip Me via Ko-fi") (one time) +- 您可以成为我的 [GitHub 赞助商](https://github.com/sponsors/MrGreensWorkshop "在 GitHub 上支持我") 之一(每月或一次) +- 你可以成为我的 [Patreons](https://patreon.com/MrGreensWorkshop "成为我的赞助人") 之一(每月) +- 您可以通过 [Ko-fi](https://ko-fi.com/MrGreensWorkshop "通过 Ko-fi 给我提示") 给我小费(一次) ### 贡献 -欢迎拉取Requests。请检查Issues和Request模板中的说明。 +欢迎拉取请求。请检查问题和拉取请求模板中的说明。 ### 贡献者 感谢你们的贡献! -- Brazilian Portuguese translation by [Vitor DallAcqua](https://github.com/fandangos). +- [Vitor DallAcqua](https://github.com/fandangos) 的巴西葡萄牙语翻译。 +- [Jean-Philippe Morissette](https://github.com/JPMorissette) 的法文翻译更正。 +- [fairycn](https://github.com/fairycn) 的简体中文翻译。 -### License +### 执照 -正如它所说,在 [MIT license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt), 你可以在任何地方使用这个主题,只要你包括许可证和版权声明。 +正如它所说,在 [MIT 许可证](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt), 你可以在任何地方使用这个主题,只要你包括许可证和版权声明。 -`Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com` +`版权所有 (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com` -请添加链接到我的页面或在页脚留下 "Pwrd by Mr. Green" +请添加链接到我的页面或在页脚留下 "Pwrd by Mr. Green" 这样我的工作就能得到认可。 谢谢你! -### Other Licenses +### 其他许可证 Mr. Green Jekyll 主题包含了下面写的库。没有这些库,我不可能使这个项目成为可能。 -| Library | file | +| 程序库 | 文件 | | :----------------------------------- | ---- | -| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0), Copyright [OpenJS Foundation](https://openjsf.org) and other contributors. jQuery is distributed under the terms of the MIT License. | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) | -| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), Copyright (c) 2011-2016 Twitter, Inc. Bootstrap is distributed under the terms of the MIT License. | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) | -| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), Copyright (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap Table of Contents is distributed under the terms of the MIT License. | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) | -| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), Copyright (c) 2017 Dave Gandy. The Font Awesome font is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL). Font Awesome CSS, LESS, and Sass files are distributed under the terms of the [MIT License](https://opensource.org/licenses/mit-license.html). | [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) | -| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), Copyright (c) 2017 Apoorv Saxena. Lozad.js is distributed under the terms of the MIT License. | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) | -| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License. | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) | -| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), Copyright (c) 2015 Christian Fei. Simple-Jekyll-Search is distributed under the terms of the MIT License. | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) | -| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), Copyright (c) 2014 Anatol Broder. Compress HTML in Jekyll is distributed under the terms of the MIT License. | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) | - -[Mr. Green Jekyll Theme](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) +| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0),版权所有 [OpenJS Foundation](https://openjsf.org) 和其他贡献者。 jQuery 是根据 MIT 许可证条款分发的。 | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) | +| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), 版权所有 (c) 2011-2016 Twitter, Inc. Bootstrap 根据 MIT 许可证条款分发。 | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) | +| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), 版权所有 (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap 目录是根据 MIT 许可证条款分发的。 | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) | +| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), 版权所有 (c) 2017 Dave Gandy. Font Awesome v4.7.0,版权所有 (c) 2017 Dave Gandy。 Font Awesome 字体根据 [SIL OFL 1.1](http://scripts.sil.org/OFL) 条款进行分发。 Font Awesome CSS、LESS 和 Sass 文件根据 [MIT 许可证](https://opensource.org/licenses/mit-license.html) 条款分发。| [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) | +| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), 版权所有 (c) 2017 Apoorv Saxena. Lozad.js 根据 MIT 许可证条款分发。 | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) | +| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), 版权所有 (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com。 Magnific Popup 是根据 MIT 许可证条款分发的。 | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) | +| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), 版权所有 (c) 2015 Christian Fei. Simple-Jekyll-Search 是根据 MIT 许可证条款分发的。 | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) | +| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), 版权所有 (c) 2014 Anatol Broder. Compress HTML in Jekyll 是根据 MIT 许可证的条款分发的。 | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) | + +[Mr. Green Jekyll 主题](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) diff --git a/README.md b/README.md index 6ea616a4c..8b3e94b5b 100755 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ I was going to make my website and thought if I did it as a template, I could sh ### Features - Multilingual web site - - English (default), Japanese, Brazilian Portuguese, French, Chinese + - English (default), Japanese, Brazilian Portuguese, French, Chinese (Simplified) - Recommended language offer feature - Auto Navigation Button adder with icon enable disable options - Layouts for `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` and more diff --git a/_data/content/projects/zh.yml b/_data/content/projects/zh.yml index e4534a860..eb10d87df 100644 --- a/_data/content/projects/zh.yml +++ b/_data/content/projects/zh.yml @@ -173,8 +173,8 @@ page_data: # picture - type: id_picture - project_name: "Example Project" - project_excerpt: "Picture" + project_name: "项目示例" + project_excerpt: "图片" img: ":project2_thumb.jpg" img_title: "img title2" date: "2021-04-23" @@ -186,7 +186,7 @@ page_data: # quote - type: id_quote - project_name: "Example Project" + project_name: "项目示例" project_excerpt: "William Shakespeare" #img: ":project1_thumb.jpg" #img_title: "img title3" diff --git a/_data/lang/zh.yml b/_data/lang/zh.yml index a1e913087..dbc04a20d 100644 --- a/_data/lang/zh.yml +++ b/_data/lang/zh.yml @@ -35,6 +35,8 @@ no_translation_tooltip: 无翻译 navigation: contact_header: 联系方式 + side_navigation_button: 侧边菜单 + scroll_back_to_top: 返回顶部 color_scheme_switch_tooltip: 颜色方案 @@ -65,7 +67,7 @@ not-found: # for post layout post: read_time: - unit: " min" + unit: " 分钟" text: " 阅读" # c for char w for word word_char: w @@ -86,7 +88,7 @@ post: text: > 评论功能由第三方托管。通过显示外部内容,您接受disqus.com的$terms和$privacy_policy。
如果您希望退出定向广告,请打开$settings_link,然后单击“退出”按钮并关闭。返回此处并加载注释。 - terms_link_text: Terms of Service + terms_link_text: 服务条款 privacy_link_text: 隐私政策 settings_link_text: 此链接 button: @@ -138,7 +140,7 @@ home: title: 欢迎 button_name: 首页 new_posts_title: 新文章 - new_posts_show_more_button: 阅读更多信息 ... + new_posts_show_more_button: 阅读更多信息 … # for archives layout archives: @@ -189,17 +191,18 @@ cookie_consent: msg: > 本网站使用cookie优化网站功能。 它将在你的批准下被激活。 - privacy_msg: 检查 $privacy_link. + privacy_msg: 检查 $privacy_link。 buttons: accept: &accept_button 允许所有 settings: 自定义 deny: &deny_button 拒绝 + close: 关闭 panel_settings: title: *cookie_settings msg: > 本网站使用cookie优化网站功能。 它将在您的批准下激活。请单击下面的每个项目以了解cookie策略。 - privacy_msg: 检查 $privacy_link. + privacy_msg: 检查 $privacy_link。 buttons: accept: *accept_button save: 允许选择 @@ -225,13 +228,12 @@ cookie_consent: gtag_info: # from https://support.google.com/tagmanager/answer/10718549#consent-types ad_storage: > - 启用与广告有关的存储(如cookies)。 + 启用与广告相关的存储(例如 Cookie)。 analytics_storage: > - 启用与分析有关的存储(如cookies),例如访问时间。 + 启用与分析(例如访问持续时间)相关的存储(例如 Cookie)。 functionality_storage: > - 启用支持网站或应用程序功能的存储,例如语言设置。 + 启用可为网站或应用的功能(例如语言设置)提供支持的存储。 personalization_storage: > - 启用与个性化相关的存储,例如视频推荐。 + 启用与个性化(例如视频推荐)相关的存储。 security_storage: > - 启用与安全有关的存储,如认证功能, - 预防欺诈,以及其他用户保护。 + 启用与安全性(例如,身份验证功能、欺诈防范功能和其他用户保护功能)相关的存储。