hugo-theme-wondermod/layouts/shortcodes/youtube.html

4 lines
227 B
HTML
Raw Permalink Normal View History

2022-07-24 01:39:42 +02:00
{{- $id := .Get "id" | default (.Get 0) -}}
<div class="youtube-embed-div">
<iframe src="https://www.youtube-nocookie.com/embed/{{ $id }}" class="youtube-embed-frame" allowfullscreen title="YouTube Video"></iframe>
</div>