diff options
author | tdro <tdro@noreply.example.com> | 2022-12-03 01:02:40 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-03 01:02:40 -0500 |
commit | 2fe40c752b4272484972f141e406fbcb7fa0cdb8 (patch) | |
tree | 9e5248b8a8488527a526d3a950731050b665eb7d /themes/default/layouts/shortcodes/video.html | |
parent | c1a0a33c40b08eb13e412a95cdcdfd869eb3bf2d (diff) | |
download | canory-0.11.7.tar.gz canory-0.11.7.tar.bz2 canory-0.11.7.zip |
themes/default/layouts/shortcodes/video.html: Default to self always0.11.7
To avoid hotlinking by mistake. Support media start and end fragments
(https://www.w3.org/TR/media-frags/) separately. Add remote parameter
for offloading to source
Diffstat (limited to 'themes/default/layouts/shortcodes/video.html')
-rw-r--r-- | themes/default/layouts/shortcodes/video.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html index 1aadbbd..64de78f 100644 --- a/themes/default/layouts/shortcodes/video.html +++ b/themes/default/layouts/shortcodes/video.html @@ -13,6 +13,7 @@ {{- $start := default "" (.Get "start" | default (.Get 8)) -}} {{- $end := default "" (.Get "end" | default (.Get 9)) -}} {{- $orientation := default "landscape" (.Get "orientation" | default (.Get 10)) -}} +{{- $remote := default "" (.Get "remote" | default (.Get 11)) -}} {{- partial "video-container.html" (dict @@ -21,14 +22,14 @@ "End" $end "Height" $height "Options" $options + "Orientation" $orientation "Poster" $poster "Preload" $preload "RelURL" (strings.TrimPrefix .Site.BaseURL .Page.Permalink) - "Source" $source + "Remote" $remote "Source" $source "Start" $start "Title" $title "Width" $width - "Orientation" $orientation ) -}} |