1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-24 00:23:10 +00:00

Revert "refactor: avoid converting media‘s relative paths to absolute paths (#2552)"

This reverts commit b3d7db3cda.
This commit is contained in:
Cotes Chung
2025-10-27 05:16:47 +08:00
parent 7f35d8e550
commit 37377a43e0

View File

@@ -15,9 +15,7 @@
{%- if url -%} {%- if url -%}
{% unless url contains ':' %} {% unless url contains ':' %}
{%- comment -%} Add media resources subpath prefix {%- endcomment -%} {%- comment -%} Add media resources subpath prefix {%- endcomment -%}
{% if include.subpath %} {% assign url = include.subpath | default: '' | append: '/' | append: url %}
{% assign url = include.subpath | append: '/' | append: url %}
{% endif %}
{%- comment -%} Prepend CND URL {%- endcomment -%} {%- comment -%} Prepend CND URL {%- endcomment -%}
{% if site.cdn %} {% if site.cdn %}