fix: correct the generation of relative resource paths (#1553)

This commit is contained in:
Cotes Chung 2024-02-23 03:07:17 +08:00 committed by GitHub
parent 5de0153df4
commit 89b962557a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@
%}
{% if include.absolute %}
{% assign url = url | absolute_url %}
{% assign url = site.url | append: site.base_url | append: url %}
{% else %}
{% assign url = url | relative_url %}
{% assign url = site.base_url | append: url %}
{% endif %}
{% endunless %}
{%- endif -%}