From 009d3f90b1881530bd28003abe83cfc3735882be Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 25 Aug 2023 01:44:50 -0700 Subject: Refactor Documentation, PWA Fix, image shortcodes fix, simplify js script loading --- templates/shortcodes/imgswap.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/shortcodes/imgswap.html') diff --git a/templates/shortcodes/imgswap.html b/templates/shortcodes/imgswap.html index 607febb..efcf6e7 100644 --- a/templates/shortcodes/imgswap.html +++ b/templates/shortcodes/imgswap.html @@ -28,7 +28,7 @@ {%- endif %} {%- else %} {# Same Directory Path #} - {%- set path = page.path %} + {%- set path = "" %} {%- if not w or not h %} {%- if lang != config.default_language %} {%- set metapath = page.path ~ img | replace(from=page.path | truncate(length=4, end=""), to="/") %} @@ -75,7 +75,7 @@ {%- endif %} {%- else %} {# Same Directory Path #} - {%- set path = page.path %} + {%- set path = "" %} {%- if not w or not h %} {%- if lang != config.default_language %} {%- set metapath = page.path ~ img | replace(from=page.path | truncate(length=4, end=""), to="/") %} -- cgit v1.3.1