From 2fe40c752b4272484972f141e406fbcb7fa0cdb8 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 3 Dec 2022 01:02:40 -0500 Subject: themes/default/layouts/shortcodes/video.html: Default to self always 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 --- themes/default/layouts/shortcodes/imgur.html | 13 ------------- themes/default/layouts/shortcodes/version.html | 2 +- themes/default/layouts/shortcodes/video.html | 5 +++-- 3 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 themes/default/layouts/shortcodes/imgur.html (limited to 'themes/default/layouts/shortcodes') diff --git a/themes/default/layouts/shortcodes/imgur.html b/themes/default/layouts/shortcodes/imgur.html deleted file mode 100644 index f51bcef..0000000 --- a/themes/default/layouts/shortcodes/imgur.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- $id := default "mkVcxUi" (.Get "id" | default (.Get 0)) -}} - - -
- -
- -
diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html index c34a53d..9c993b3 100644 --- a/themes/default/layouts/shortcodes/version.html +++ b/themes/default/layouts/shortcodes/version.html @@ -1,4 +1,4 @@ -{{- $version := "0.11.6" -}} +{{- $version := "0.11.7" -}} {{- $number := default false (.Get "number" | default (.Get 0)) -}} {{- $clone := default false (.Get "clone" | default (.Get 1)) -}} 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 ) -}} -- cgit v1.2.3