From d098ddb5f05fee9f8e7a4153494bfced57f5813d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 5 Jan 2022 03:14:38 +0800 Subject: [PATCH] Merge branch 'hotfix/5.0.1' --- _includes/refactor-content.html | 9 ++++++--- _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 +- 11 files changed, 16 insertions(+), 13 deletions(-) diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index b47e0a9c2..bd87864e1 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -56,9 +56,10 @@ {% assign _height = nil %} {% assign _src = nil %} - {% assign _left = _img_snippet | split: '/>' | first %} - {% assign _right = _img_snippet | replace: _left, '' %} + {% assign _left = _img_snippet | split: '>' | first %} + {% assign _right = _img_snippet | remove: _left %} + {% assign _left = _left | remove: ' /' %} {% assign _left = _left | replace: ' w=', ' width=' | replace: ' h=', ' height=' %} {% assign _attrs = _left | split: ' ' %} @@ -207,7 +208,9 @@ {% capture anchor %}{% endcapture %} {% assign left = snippet | split: mark_end | first %} - {% assign right = snippet | replace: left, '' %} + {% assign _start_index = left | size %} + {% assign _end_index = snippet | size | minus: 1 %} + {% assign right = snippet | slice: _start_index, _end_index %} {% assign _new_content = _new_content | append: mark_start | append: left | append: anchor | append: mark_end | append: right diff --git a/_javascript/copyright b/_javascript/copyright index 422b4345a..1784fc421 100644 --- a/_javascript/copyright +++ b/_javascript/copyright @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 40882b1dd..2d20cc2c7 100644 --- a/_sass/jekyll-theme-chirpy.scss +++ b/_sass/jekyll-theme-chirpy.scss @@ -1,7 +1,7 @@ /*! * The styles for Jekyll theme Chirpy * - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy) + * Chirpy v5.0.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 e6f88e603..611e5e8b6 100644 --- a/assets/js/dist/categories.min.js +++ b/assets/js/dist/categories.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 e19c78a12..5ea9898a9 100644 --- a/assets/js/dist/commons.min.js +++ b/assets/js/dist/commons.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 6cecd21d8..55576d288 100644 --- a/assets/js/dist/home.min.js +++ b/assets/js/dist/home.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 7f9c46ecc..cdcf8af40 100644 --- a/assets/js/dist/page.min.js +++ b/assets/js/dist/page.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 83552ab33..e42751a75 100644 --- a/assets/js/dist/post.min.js +++ b/assets/js/dist/post.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 18152de6b..9d57290af 100644 --- a/assets/js/dist/pvreport.min.js +++ b/assets/js/dist/pvreport.min.js @@ -1,5 +1,5 @@ /*! - * Chirpy v5.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.0.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 1108c45e2..663c6c2ff 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 = "5.0.0" + spec.version = "5.0.1" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index fd510b3ae..0381faa2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "5.0.0", + "version": "5.0.1", "description": "A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.", "main": "index.js", "directories": {