aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/imgswap.html
diff options
context:
space:
mode:
authorJieiku2023-08-25 01:44:50 -0700
committerJieiku2023-08-25 01:44:50 -0700
commit009d3f90b1881530bd28003abe83cfc3735882be (patch)
tree5112554449edf2aaff956b9c364133ec41ff39c5 /templates/shortcodes/imgswap.html
parentc04ff0a3ac2aff149c3454f7563de3f7941e373d (diff)
downloadabridge-009d3f90b1881530bd28003abe83cfc3735882be.tar.gz
abridge-009d3f90b1881530bd28003abe83cfc3735882be.tar.bz2
abridge-009d3f90b1881530bd28003abe83cfc3735882be.zip
Refactor Documentation, PWA Fix, image shortcodes fix, simplify js script loading
Diffstat (limited to 'templates/shortcodes/imgswap.html')
-rw-r--r--templates/shortcodes/imgswap.html4
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="/") %}