From cfe44f204bcec8e05f498512ec50878e626a124f Mon Sep 17 00:00:00 2001 From: Alexander Fuks Date: Fri, 22 Mar 2024 22:56:19 +0400 Subject: [PATCH 1/3] fix: correct the attribute for the Twitter social image (#1615) --- _includes/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index 9bad78a..c9187a3 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -39,7 +39,7 @@ {%- endcapture -%} {%- capture twitter_image -%} - + {%- endcapture -%} From 74cf57aaacf6674057e6f33240a22f4888cfe88f Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 23 Mar 2024 03:32:03 +0800 Subject: [PATCH 2/3] fix(seo): correct social preview image path inside `` tag (#1623) --- _includes/img-url.html | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/_includes/img-url.html b/_includes/img-url.html index 2f8d401..20620b7 100644 --- a/_includes/img-url.html +++ b/_includes/img-url.html @@ -14,24 +14,26 @@ {%- if url -%} {% unless url contains ':' %} - {%- comment -%} CND URL {%- endcomment -%} - {% assign prefix = site.img_cdn | default: '' %} - {%- comment -%} Add page image path prefix {%- endcomment -%} {% assign url = include.img_path | default: '' | append: '/' | append: url %} - {% assign url = prefix - | append: '/' - | append: url - | replace: '///', '/' - | replace: '//', '/' - | replace: ':', ':/' - %} + {%- comment -%} CND URL {%- endcomment -%} + {% if site.img_cdn %} + {% assign url = site.img_cdn + | append: '/' + | append: url + | replace: '///', '/' + | replace: '//', '/' + | replace: ':/', '://' + %} - {% if include.absolute %} - {% assign url = site.url | append: site.baseurl | append: url %} - {% else %} - {% assign url = site.baseurl | append: url %} + {% unless site.img_cdn contains ':' %} + {% if include.absolute %} + {% assign url = site.url | append: site.baseurl | append: url %} + {% else %} + {% assign url = site.baseurl | append: url %} + {% endif %} + {% endunless %} {% endif %} {% endunless %} {%- endif -%} From e5594525e74c33a5a9343921b6546357d688aa82 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 23 Mar 2024 03:41:58 +0800 Subject: [PATCH 3/3] chore(release): 6.5.4 --- docs/CHANGELOG.md | 7 +++++++ jekyll-theme-chirpy.gemspec | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 6db73fe..2d265f3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [6.5.4](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.3...v6.5.4) (2024-03-22) + +### Bug Fixes + +* correct the attribute for the Twitter social image ([#1615](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1615)) ([cfe44f2](https://github.com/cotes2020/jekyll-theme-chirpy/commit/cfe44f204bcec8e05f498512ec50878e626a124f)) +* **seo:** correct social preview image path inside `` tag ([#1623](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1623)) ([74cf57a](https://github.com/cotes2020/jekyll-theme-chirpy/commit/74cf57aaacf6674057e6f33240a22f4888cfe88f)) + ## [6.5.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.2...v6.5.3) (2024-03-07) ## [6.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.1...v6.5.2) (2024-02-29) diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 3287993..a6899ef 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 = "6.5.3" + spec.version = "6.5.4" spec.authors = ["Cotes Chung"] spec.email = ["cotes.chung@gmail.com"] diff --git a/package.json b/package.json index 09692b2..49dcbe3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jekyll-theme-chirpy", - "version": "6.5.3", + "version": "6.5.4", "description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.", "repository": { "type": "git",