mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-10-20 17:53:45 +00:00
refactor: avoid converting media‘s relative paths to absolute paths (#2552)
This commit is contained in:
parent
ee6839516e
commit
b3d7db3cda
@ -15,7 +15,9 @@
|
|||||||
{%- if url -%}
|
{%- if url -%}
|
||||||
{% unless url contains ':' %}
|
{% unless url contains ':' %}
|
||||||
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
|
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
|
||||||
{% assign url = include.subpath | default: '' | append: '/' | append: url %}
|
{% if include.subpath %}
|
||||||
|
{% assign url = include.subpath | append: '/' | append: url %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- comment -%} Prepend CND URL {%- endcomment -%}
|
{%- comment -%} Prepend CND URL {%- endcomment -%}
|
||||||
{% if site.cdn %}
|
{% if site.cdn %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user