diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/iframe.html')
-rw-r--r-- | themes/default/layouts/shortcodes/iframe.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/iframe.html b/themes/default/layouts/shortcodes/iframe.html new file mode 100644 index 0000000..cd72763 --- /dev/null +++ b/themes/default/layouts/shortcodes/iframe.html @@ -0,0 +1,13 @@ +{{- $url := default "https://example.org/" (.Get "url" | default (.Get 0)) -}} +{{- $title := default "Content Embed" (.Get "title" | default (.Get 1)) -}} +{{- $caption := default $title (.Get "caption" | default (.Get 2)) -}} +{{- $sandbox := default "" (.Get "sandbox" | default (.Get 3)) -}} + +<iframe-embed> + <iframe + sandbox="{{ $sandbox }}" + src="{{ $url }}" + title="{{ $title }}" + ></iframe> + <figcaption>{{ $caption | markdownify }}</figcaption> +</iframe-embed> |