diff options
author | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
commit | e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6 (patch) | |
tree | 3667043819ab91065019dfe3b4ff83ad625c2b49 /themes/default/layouts/shortcodes/odysee.html | |
download | canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.gz canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.bz2 canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.zip |
config.yaml: Commission
Diffstat (limited to 'themes/default/layouts/shortcodes/odysee.html')
-rw-r--r-- | themes/default/layouts/shortcodes/odysee.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/odysee.html b/themes/default/layouts/shortcodes/odysee.html new file mode 100644 index 0000000..91f03c0 --- /dev/null +++ b/themes/default/layouts/shortcodes/odysee.html @@ -0,0 +1,14 @@ +{{- $url := default "https://odysee.com/$/embed/odysee/7a416c44a6888d94fe045241bbac055c726332aa" (.Get "url" | default (.Get 0)) -}} +{{- $title := default "Odysee Video" (.Get "title" | default (.Get 1)) -}} +{{- $caption := default (print $title ": [Link](" $url ")") (.Get "caption" | default (.Get 2)) -}} + +<odysee-video> + <iframe + sandbox="allow-scripts allow-same-origin allow-presentation" + id="odysee-iframe" + src="{{ $url }}" + title="{{ $title }}" + allowfullscreen> + </iframe> + <figcaption>{{ $caption | markdownify }}</figcaption> +</odysee-video> |