Merge branch 'hotfix/6.5.5' into production
This commit is contained in:
commit
cef8a97384
2 changed files with 14 additions and 16 deletions
|
@ -17,24 +17,20 @@
|
||||||
{%- comment -%} Add page image path prefix {%- endcomment -%}
|
{%- comment -%} Add page image path prefix {%- endcomment -%}
|
||||||
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
|
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
|
||||||
|
|
||||||
{%- comment -%} CND URL {%- endcomment -%}
|
{%- comment -%} Prepend CND URL {%- endcomment -%}
|
||||||
{% if site.img_cdn %}
|
{% if site.img_cdn %}
|
||||||
{% assign url = site.img_cdn
|
{% assign url = site.img_cdn | append: '/' | append: url %}
|
||||||
| append: '/'
|
{% endif %}
|
||||||
| append: url
|
|
||||||
| replace: '///', '/'
|
|
||||||
| replace: '//', '/'
|
|
||||||
| replace: ':/', '://'
|
|
||||||
%}
|
|
||||||
|
|
||||||
{% unless site.img_cdn contains ':' %}
|
{% assign url = url | replace: '///', '/' | replace: '//', '/' | replace: ':/', '://' %}
|
||||||
|
|
||||||
|
{% unless url contains '://' %}
|
||||||
{% if include.absolute %}
|
{% if include.absolute %}
|
||||||
{% assign url = site.url | append: site.baseurl | append: url %}
|
{% assign url = site.url | append: site.baseurl | append: url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign url = site.baseurl | append: url %}
|
{% assign url = site.baseurl | append: url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endif %}
|
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@ All notable changes to this project will be documented in this file. See [standa
|
||||||
|
|
||||||
## [6.5.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.2...v6.5.3) (2024-03-07)
|
## [6.5.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.2...v6.5.3) (2024-03-07)
|
||||||
|
|
||||||
|
* 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))
|
||||||
|
|
||||||
## [6.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.1...v6.5.2) (2024-02-29)
|
## [6.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.5.1...v6.5.2) (2024-02-29)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
Loading…
Reference in a new issue