aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/imgur-video.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-25 22:49:32 -0400
committertdro <tdro@noreply.example.com>2022-06-25 22:49:32 -0400
commitfbeb2a9c1fecf8b0ac2347645dfcae2bb64706c4 (patch)
treec29bc39e2e9aa3d13daca0f642f7cd59db0ead08 /themes/default/layouts/shortcodes/imgur-video.html
parent070e9e148c6b637cbd2ba622f867d3e25ace7365 (diff)
downloadcanory-fbeb2a9c1fecf8b0ac2347645dfcae2bb64706c4.tar.gz
canory-fbeb2a9c1fecf8b0ac2347645dfcae2bb64706c4.tar.bz2
canory-fbeb2a9c1fecf8b0ac2347645dfcae2bb64706c4.zip
themes/default/layouts/partials/video-container: Forge a reliable slug variable
To prevent subdirectory path (if in use) from leaking into immutable link.
Diffstat (limited to 'themes/default/layouts/shortcodes/imgur-video.html')
-rw-r--r--themes/default/layouts/shortcodes/imgur-video.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/imgur-video.html b/themes/default/layouts/shortcodes/imgur-video.html
index c60cbff..b4658ec 100644
--- a/themes/default/layouts/shortcodes/imgur-video.html
+++ b/themes/default/layouts/shortcodes/imgur-video.html
@@ -11,7 +11,7 @@
"Author" .Page.Section
"Caption" $caption
"Options" $options
- "RelURL" .Page.RelPermalink
+ "Slug" (strings.TrimPrefix .Site.BaseURL .Page.Permalink)
"Source" (print "https://i.imgur.com/" $id ".mp4")
)
-}}