blob: cd72763194305c476c2f8b7626f647bb4f1626cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>
|