Skip to content

Commit

Permalink
fix: correct the generation of relative resource paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Feb 22, 2024
1 parent 5de0153 commit 858156b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/img-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 858156b

Please sign in to comment.