diff --git a/README.md b/README.md index d163af8..d588f0d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ $ bash tools/init.sh The above command will: 1. Removes some files or directories from your repository: + - `.travis.yml` - files under `_posts` - folder `docs` @@ -157,8 +158,7 @@ Now publish your Jekyll site by: 1. Push any commit to remote to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files. 2. Browse to your repository on GitHub. Select the tab _Settings_, then click _Pages_ in the left navigation bar, and then in the section **Source** of _GitHub Pages_, select the `/(root)` directory of branch `gh-pages` as the [publishing source][pages-src]. Remember to click Save before leaving. - - ![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images@0a003683c0c3ca549d12c309f9b3e03ea20981e5/posts/20190809/gh-pages-sources.png) + ![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images@0a003683c0c3ca549d12c309f9b3e03ea20981e5/posts/20190809/gh-pages-sources.png) 3. Visit your website at the address indicated by GitHub. @@ -190,18 +190,18 @@ It depends on how you use the theme: - If you are using the theme gem (there will be `gem "jekyll-theme-chirpy"` in the `Gemfile`), editing the `Gemfile` and update the version number of the theme gem, for example: - ```diff - - gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1" - + gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0" - ``` + ```diff + - gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1" + + gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0" + ``` - And then execute the following command: + And then execute the following command: - ```console - $ bundle update jekyll-theme-chirpy - ``` + ```console + $ bundle update jekyll-theme-chirpy + ``` - As the version upgrades, the critical files (for details, see the [Startup Template][starter]) and configuration options will change. Please refer to the [Upgrade Guide](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide) to keep your repo's files in sync with the latest version of the theme. + As the version upgrades, the critical files (for details, see the [Startup Template][starter]) and configuration options will change. Please refer to the [Upgrade Guide](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide) to keep your repo's files in sync with the latest version of the theme. - If you forked from the source project (there will be `gemspec` in the `Gemfile` of your site), then merge the [latest upstream tags][latest-tag] into your Jekyll site to complete the upgrade. The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts. diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md index 73189b4..762ad5a 100644 --- a/_posts/2019-08-08-text-and-typography.md +++ b/_posts/2019-08-08-text-and-typography.md @@ -52,8 +52,8 @@ Fluttering and dancing in the breeze. ### Unordered list - Chapter - - Section - - Paragraph + - Section + - Paragraph ### Task list @@ -72,7 +72,6 @@ Sun Moon : the natural satellite of the earth, visible by reflected light from the sun - ## Block Quote > This line to shows the Block Quote. @@ -89,12 +88,10 @@ Moon - ## Footnote Click the hook will locate the footnote[^footnote], and here is another footnote[^fn-nth-2]. - ## Images - Default (with caption) @@ -141,7 +138,6 @@ _shadow effect (visible in light mode)_ cherry :active, c, after b a, 1d ``` - ## Mathematics The mathematics powered by [**MathJax**](https://www.mathjax.org/): @@ -152,12 +148,10 @@ When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ - ## Inline code This is an example of `Inline Code`. - ## Code block ### Common diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md index 110be90..c750234 100644 --- a/_posts/2019-08-08-write-a-new-post.md +++ b/_posts/2019-08-08-write-a-new-post.md @@ -253,4 +253,3 @@ Or adding `render_with_liquid: false` (Requires Jekyll 4.0 or higher) to the pos ## Learn More For more knowledge about Jekyll posts, visit the [Jekyll Docs: Posts](https://jekyllrb.com/docs/posts/). - diff --git a/_posts/2019-08-09-getting-started.md b/_posts/2019-08-09-getting-started.md index 6362169..107fb94 100644 --- a/_posts/2019-08-09-getting-started.md +++ b/_posts/2019-08-09-getting-started.md @@ -39,6 +39,7 @@ $ bash tools/init.sh The above command will: 1. Removes some files or directories from your repository: + - `.travis.yml` - files under `_posts` - folder `docs` @@ -122,8 +123,7 @@ Now publish your Jekyll site by: 1. Push any commit to remote to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files. 2. Browse to your repository on GitHub. Select the tab _Settings_, then click _Pages_ in the left navigation bar, and then in the section **Source** of _GitHub Pages_, select the `/(root)` directory of branch `gh-pages` as the [publishing source][pages-src]. Remember to click Save before leaving. - - ![gh-pages-sources](/posts/20190809/gh-pages-sources.png){: width="850" height="153" } + ![gh-pages-sources](/posts/20190809/gh-pages-sources.png){: width="850" height="153" } 3. Visit your website at the address indicated by GitHub. @@ -155,19 +155,19 @@ It depends on how you use the theme: - If you are using the theme gem (there will be `gem "jekyll-theme-chirpy"` in the `Gemfile`), editing the `Gemfile` and update the version number of the theme gem, for example: - ```diff + ```diff - gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1" + gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0" - ``` - {: .nolineno file="Gemfile" } + ``` + {: .nolineno file="Gemfile" } - And then execute the following command: + And then execute the following command: - ```console + ```console $ bundle update jekyll-theme-chirpy - ``` + ``` - As the version upgrades, the critical files (for details, see the [Startup Template][starter]) and configuration options will change. Please refer to the [Upgrade Guide](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide) to keep your repo's files in sync with the latest version of the theme. + As the version upgrades, the critical files (for details, see the [Startup Template][starter]) and configuration options will change. Please refer to the [Upgrade Guide](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide) to keep your repo's files in sync with the latest version of the theme. - If you forked from the source project (there will be `gemspec` in the `Gemfile` of your site), then merge the [latest upstream tags][latest-tag] into your Jekyll site to complete the upgrade. The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts. diff --git a/_posts/2021-01-03-enable-google-pv.md b/_posts/2021-01-03-enable-google-pv.md index 2de8a50..8b62aa4 100644 --- a/_posts/2021-01-03-enable-google-pv.md +++ b/_posts/2021-01-03-enable-google-pv.md @@ -202,9 +202,9 @@ In order to reduce the returned results and reduce the network bandwidth, we add - **filters**: fill in `ga:pagePath=~^/posts/.*/$;ga:pagePath!@=`. - Among them, `;` means using _logical AND_ to concatenate two rules. + Among them, `;` means using _logical AND_ to concatenate two rules. - If the `site.baseurl` is specified, change the first filtering rule to `ga:pagePath=~^/BASE_URL/posts/.*/$`, where `BASE_URL` is the value of `site.baseurl`. + If the `site.baseurl` is specified, change the first filtering rule to `ga:pagePath=~^/BASE_URL/posts/.*/$`, where `BASE_URL` is the value of `site.baseurl`. After Run Query, copy the generated contents of **API Query URI** at the bottom of the page and fill in the **Encoded URI for the query** of SuperProxy on GAE. @@ -212,7 +212,6 @@ After the query is saved on GAE, a **Public Endpoint** (public access address) w ![superproxy-query](/posts/20210103/04-superproxy-query.png){: width="1100" height="126"} - ## Configure Chirpy to Display Page View Once all the hard part is done, it is very easy to enable the Page View on Chirpy theme. Your superProxy dashboard should look something like below and you can grab the required values. diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index c1b854e..320d70d 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -75,6 +75,7 @@ $ bash tools/init.sh 上述脚本将会: 1. 从您的仓库中删除了: + - `.travis.yml` - `_posts` 下的文件 - `docs` 目录 @@ -157,7 +158,7 @@ $ docker run -it --rm \ 2. 回到 GitHub 上的仓库,选择标签 _Settings_ → 点击左侧导航栏的 _Pages_ → _GitHub Pages_ 选择分支 `gh-pages` 的 `/(root)` 作为「[发布源][pages-src]」: - ![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images@0a003683c0c3ca549d12c309f9b3e03ea20981e5/posts/20190809/gh-pages-sources.png) + ![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images@0a003683c0c3ca549d12c309f9b3e03ea20981e5/posts/20190809/gh-pages-sources.png) 3. 按照 GitHub 指示的地址去访问您的网站。 @@ -188,18 +189,19 @@ $ docker run -it --rm \ 这取决于您如何使用这个 theme: - 如果您是使用 theme gem(`Gemfile` 会有 `gem "jekyll-theme-chirpy"`),编辑 `Gemfile` 并更新 them gem 的版本号,譬如: - ```diff - - gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1" - + gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0" - ``` - 接着执行以下命令: + ```diff + - gem "jekyll-theme-chirpy", "~> 3.2", ">= 3.2.1" + + gem "jekyll-theme-chirpy", "~> 3.3", ">= 3.3.0" + ``` - ```console - $ bundle update jekyll-theme-chirpy - ``` + 接着执行以下命令: - 随着 theme 版本的升级,运行站点的必要文件(详见 [Chirpy Starter][starter])以及配置选项会出现变化,请参阅「[升级指南](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide)」的改动细节去保持您仓库中的相关文件同步到最新版本。 + ```console + $ bundle update jekyll-theme-chirpy + ``` + + 随着 theme 版本的升级,运行站点的必要文件(详见 [Chirpy Starter][starter])以及配置选项会出现变化,请参阅「[升级指南](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide)」的改动细节去保持您仓库中的相关文件同步到最新版本。 - 如果您是以 fork 的方式使用(您站点的 `Gemfile` 会有 `gemspec`),那么合并上游 [最新的 tag][latest-tag] 到您的 Repo 以完成升级。期间很有可能会产生冲突 (conflicts),请务必耐心谨慎地解决它们。