From a887f1d57d9ac8e08c789c6201147bf68c459573 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 30 Sep 2021 15:24:10 +0800 Subject: [PATCH 1/3] Prevent the site test from failing when the avatar is not assigned (close #418) Some rookies like to do this :( --- _includes/sidebar.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 4ab9f12..5fd3eb0 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -6,16 +6,18 @@
- {% capture avatar_url %} - {%- if site.avatar contains '://' -%} - {{ site.avatar }} - {%- elsif site.img_cdn != '' and site.img_cdn -%} - {{ site.avatar | prepend: site.img_cdn }} - {%- else -%} - {{ site.avatar | relative_url }} - {%- endif -%} - {% endcapture %} - avatar + {% if site.avatar != '' and site.avatar %} + {% capture avatar_url %} + {%- if site.avatar contains '://' -%} + {{ site.avatar }} + {%- elsif site.img_cdn != '' and site.img_cdn -%} + {{ site.avatar | prepend: site.img_cdn }} + {%- else -%} + {{ site.avatar | relative_url }} + {%- endif -%} + {% endcapture %} + avatar + {% endif %}
From 952b1f493b0a9b04788756757b73276771b66c36 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 1 Oct 2021 18:36:10 +0800 Subject: [PATCH 2/3] Fix contents in tutorials - Correct the aspect ratio of the mockup image - Delete code snippet space in docs --- _posts/2019-08-08-text-and-typography.md | 4 ++-- _posts/2019-08-09-getting-started.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md index 65756a3..73189b4 100644 --- a/_posts/2019-08-08-text-and-typography.md +++ b/_posts/2019-08-08-text-and-typography.md @@ -8,8 +8,8 @@ math: true mermaid: true image: src: /commons/devices-mockup.png - width: 850 - height: 585 + width: 800 + height: 500 --- This post is to show Markdown syntax rendering on [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork), you can also use it as an example of writing. Now, let's start looking at text and typography. diff --git a/_posts/2019-08-09-getting-started.md b/_posts/2019-08-09-getting-started.md index 742f1d9..7704ce6 100644 --- a/_posts/2019-08-09-getting-started.md +++ b/_posts/2019-08-09-getting-started.md @@ -165,7 +165,7 @@ It depends on how you use the theme: And then execute the following command: ```console - $ bundle update jekyll-theme-chirpy + $ 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. From 9b0b7d777275b0c2fa58647e53062e8d3b2dbfa0 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 1 Oct 2021 18:48:42 +0800 Subject: [PATCH 3/3] Bump version to 4.3.1 --- _javascript/copyright | 2 +- _sass/jekyll-theme-chirpy.scss | 2 +- assets/js/dist/categories.min.js | 2 +- assets/js/dist/commons.min.js | 2 +- assets/js/dist/home.min.js | 2 +- assets/js/dist/page.min.js | 2 +- assets/js/dist/post.min.js | 2 +- assets/js/dist/pvreport.min.js | 2 +- jekyll-theme-chirpy.gemspec | 2 +- package.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/_javascript/copyright b/_javascript/copyright index 2cd3e11..3cd7337 100644 --- a/_javascript/copyright +++ b/_javascript/copyright @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/_sass/jekyll-theme-chirpy.scss b/_sass/jekyll-theme-chirpy.scss index 03f9495..f23275e 100644 --- a/_sass/jekyll-theme-chirpy.scss +++ b/_sass/jekyll-theme-chirpy.scss @@ -1,7 +1,7 @@ /*! * The styles for Jekyll theme Chirpy * - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/categories.min.js b/assets/js/dist/categories.min.js index 397f72e..de6f17d 100644 --- a/assets/js/dist/categories.min.js +++ b/assets/js/dist/categories.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/commons.min.js b/assets/js/dist/commons.min.js index 02d9bef..b058bbe 100644 --- a/assets/js/dist/commons.min.js +++ b/assets/js/dist/commons.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/home.min.js b/assets/js/dist/home.min.js index 96dbf97..3aeeb3a 100644 --- a/assets/js/dist/home.min.js +++ b/assets/js/dist/home.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/page.min.js b/assets/js/dist/page.min.js index e8c36c1..fa76b1b 100644 --- a/assets/js/dist/page.min.js +++ b/assets/js/dist/page.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/post.min.js b/assets/js/dist/post.min.js index fb65b50..86265c0 100644 --- a/assets/js/dist/post.min.js +++ b/assets/js/dist/post.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/assets/js/dist/pvreport.min.js b/assets/js/dist/pvreport.min.js index 5d011b8..1cc998e 100644 --- a/assets/js/dist/pvreport.min.js +++ b/assets/js/dist/pvreport.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v4.3.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v4.3.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 510847c..6ad115e 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-chirpy" - spec.version = "4.3.0" + spec.version = "4.3.1" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index 8b8c0e0..70efb7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "4.3.0", + "version": "4.3.1", "description": "A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.", "main": "index.js", "directories": {