diff options
Diffstat (limited to 'templates/shortcodes/imgswap.html')
| -rw-r--r-- | templates/shortcodes/imgswap.html | 4 |
1 files changed, 2 insertions, 2 deletions
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="/") %} |
