diff options
author | tdro <tdro@noreply.example.com> | 2022-12-22 02:19:54 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-22 02:19:54 -0500 |
commit | f02259a87f5be78ac3611a2341bed83306e94223 (patch) | |
tree | d2f80015f7e548a7cd34813f633b2429e64b10df /themes/default/layouts/shortcodes/video.rss.xml | |
parent | b7acf1be64b6845a0b826a1af4c0db62e70e9aba (diff) | |
download | canory-f02259a87f5be78ac3611a2341bed83306e94223.tar.gz canory-f02259a87f5be78ac3611a2341bed83306e94223.tar.bz2 canory-f02259a87f5be78ac3611a2341bed83306e94223.zip |
themes/default/layouts/shortcodes/video: Add RSS version
Unify other helpers
Diffstat (limited to 'themes/default/layouts/shortcodes/video.rss.xml')
-rw-r--r-- | themes/default/layouts/shortcodes/video.rss.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/video.rss.xml b/themes/default/layouts/shortcodes/video.rss.xml new file mode 100644 index 0000000..cff5974 --- /dev/null +++ b/themes/default/layouts/shortcodes/video.rss.xml @@ -0,0 +1,29 @@ +{{- + $source := default + "https://raw.githubusercontent.com/benhosmer/HTML5-Test-Videos/9a6c2db46472454c634963cbeb0900fd37901fac/big_buck_bunny.mp4" + (.Get "source" | default (.Get 0)) +-}} +{{- $poster := default "" (.Get "poster" | default (.Get 1)) -}} +{{- $width := default "" (.Get "width" | default (.Get 2)) -}} +{{- $height := default "" (.Get "height" | default (.Get 3)) -}} +{{- $preload := default "metadata" (.Get "preload" | default (.Get 4)) -}} +{{- $options := default "controls" (.Get "options" | default (.Get 5)) -}} +{{- $caption := default "Untitled Video" (.Get "caption" | default (.Get 6)) -}} +{{- $title := default $caption (.Get "title" | default (.Get 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)) -}} + +<p> + <b> + <a + title="{{ $title }}" + href="{{ $source }}" + > + {{- $caption -}} + </a> + </b> + <br> + <span>{{ $caption }}</span> +</p> |