From 89b962557a56ccc13eba3c9c20b4270ee9d30042 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 23 Feb 2024 03:07:17 +0800 Subject: [PATCH] fix: correct the generation of relative resource paths (#1553) --- _includes/img-url.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/img-url.html b/_includes/img-url.html index c08e8b9..1483652 100644 --- a/_includes/img-url.html +++ b/_includes/img-url.html @@ -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 -%}