Skip to content

Commit ce96d7e

Browse files
committed
Merge branch 'production'
2 parents c5d5e1f + 7a7818b commit ce96d7e

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

_includes/img-url.html

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,20 @@
1717
{%- comment -%} Add page image path prefix {%- endcomment -%}
1818
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
1919

20-
{%- comment -%} CND URL {%- endcomment -%}
20+
{%- comment -%} Prepend CND URL {%- endcomment -%}
2121
{% if site.img_cdn %}
22-
{% assign url = site.img_cdn
23-
| append: '/'
24-
| append: url
25-
| replace: '///', '/'
26-
| replace: '//', '/'
27-
| replace: ':/', '://'
28-
%}
29-
30-
{% unless site.img_cdn contains ':' %}
31-
{% if include.absolute %}
32-
{% assign url = site.url | append: site.baseurl | append: url %}
33-
{% else %}
34-
{% assign url = site.baseurl | append: url %}
35-
{% endif %}
36-
{% endunless %}
22+
{% assign url = site.img_cdn | append: '/' | append: url %}
3723
{% endif %}
24+
25+
{% assign url = url | replace: '///', '/' | replace: '//', '/' | replace: ':/', '://' %}
26+
27+
{% unless url contains '://' %}
28+
{% if include.absolute %}
29+
{% assign url = site.url | append: site.baseurl | append: url %}
30+
{% else %}
31+
{% assign url = site.baseurl | append: url %}
32+
{% endif %}
33+
{% endunless %}
3834
{% endunless %}
3935
{%- endif -%}
4036

docs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
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.
44

5+
## [6.5.5](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.4...v6.5.5) (2024-03-23)
6+
7+
### Bug Fixes
8+
9+
* **post:** correct the image URLs ([#1627](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1627)) ([2d649aa](https://github.com/cotes2020/jekyll-theme-chirpy/commit/2d649aae0e40a24db1ab0d46fa474294e96cb135))
10+
511
## [6.5.4](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.3...v6.5.4) (2024-03-22)
612

713
### Bug Fixes
@@ -11,6 +17,8 @@ All notable changes to this project will be documented in this file. See [standa
1117

1218
## [6.5.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.2...v6.5.3) (2024-03-07)
1319

20+
* replace `polyfill.io` with `cdnjs` hosted link ([#1598](https://github.com/cotes2020/jekyll-theme-chirpy/pull/1598)) ([75a3d73](https://github.com/cotes2020/jekyll-theme-chirpy/commit/75a3d7399b257256a09d602cbe01062fe1cdf68d))
21+
1422
## [6.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.1...v6.5.2) (2024-02-29)
1523

1624
### Bug Fixes

jekyll-theme-chirpy.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-theme-chirpy"
5-
spec.version = "6.5.4"
5+
spec.version = "6.5.5"
66
spec.authors = ["Cotes Chung"]
77
spec.email = ["cotes.chung@gmail.com"]
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jekyll-theme-chirpy",
3-
"version": "6.5.4",
3+
"version": "6.5.5",
44
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)