blob: 6036e07c67ebb755aa3889f52f9dac77a06f6432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{{- $url := default "" (.Get "url" | default (.Get 0)) -}}
{{- $title := default "Self Embed" (.Get "title" | default (.Get 1)) -}}
{{- $caption := default (print $title " ([Link](" $url "))") (.Get "caption" | default (.Get 2)) -}}
{{- $sandbox := default "allow-popups" (.Get "sandbox" | default (.Get 3)) -}}
{{- if (eq $url "") -}}
{{- $url = "/" -}}
{{- end -}}
<self-embed>
<iframe
height="165"
scrolling="no"
sandbox="{{ $sandbox }}"
src="{{ .Site.BaseURL }}{{ $url }}"
title="{{ $title }}"
></iframe>
<footer>{{ $caption | markdownify }}</footer>
</self-embed>
|