hugo-theme-wondermod/layouts/shortcodes/youtube.html
2022-07-24 01:39:42 +02:00

4 lines
227 B
HTML

{{- $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>