Skip to content

Commit 6044df4

Browse files
committed
Merge branch 'production'
2 parents 700fd5b + e559452 commit 6044df4

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{%- endcapture -%}
4040

4141
{%- capture twitter_image -%}
42-
<meta property="twitter:card" content="summary_large_image" />
42+
<meta name="twitter:card" content="summary_large_image" />
4343
<meta property="twitter:image" content="{{ img_url }}" />
4444
{%- endcapture -%}
4545

_includes/img-url.html

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@
1414

1515
{%- if url -%}
1616
{% unless url contains ':' %}
17-
{%- comment -%} CND URL {%- endcomment -%}
18-
{% assign prefix = site.img_cdn | default: '' %}
19-
2017
{%- comment -%} Add page image path prefix {%- endcomment -%}
2118
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
2219

23-
{% assign url = prefix
24-
| append: '/'
25-
| append: url
26-
| replace: '///', '/'
27-
| replace: '//', '/'
28-
| replace: ':', ':/'
29-
%}
30-
31-
{% if include.absolute %}
32-
{% assign url = site.url | append: site.baseurl | append: url %}
33-
{% else %}
34-
{% assign url = site.baseurl | append: url %}
20+
{%- comment -%} CND URL {%- endcomment -%}
21+
{% 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 %}
3537
{% endif %}
3638
{% endunless %}
3739
{%- endif -%}

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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.4](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.3...v6.5.4) (2024-03-22)
6+
7+
### Bug Fixes
8+
9+
* 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))
10+
* **seo:** correct social preview image path inside `<meta>` tag ([#1623](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1623)) ([74cf57a](https://github.com/cotes2020/jekyll-theme-chirpy/commit/74cf57aaacf6674057e6f33240a22f4888cfe88f))
11+
512
## [6.5.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.2...v6.5.3) (2024-03-07)
613

714
## [6.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.1...v6.5.2) (2024-02-29)

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.3"
5+
spec.version = "6.5.4"
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.3",
3+
"version": "6.5.4",
44
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)