Files
paige-hugo/layouts/partials/paige/tag-iframe.html
2025-03-03 18:44:01 -08:00

9 lines
395 B
HTML

{{ $params := . }}
{{ $fullscreen := $params.fullscreen }}
{{ $policy := $params.referrerpolicy | default "no-referrer" }}
{{ $src := relLangURL $params.src }}
{{ $title := $params.title }}
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} {{ with $policy }} referrerpolicy="{{ . }}" {{ end }} {{ with $src }} src="{{ . }}" {{ end }} {{ with $title }} title="{{ . }}" {{ end }}></iframe>