aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/iframe.html
blob: 232853c5edae5263b0fbdf100c9b2030fb65b428 (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>
  <footer>{{ $caption | markdownify }}</footer>
</iframe-embed>