improve youtube shortcode (#21)

This commit is contained in:
Wonderfall 2022-07-22 05:01:31 +02:00 committed by tommytran732
parent e71be60e17
commit 912096e167
No known key found for this signature in database
GPG key ID: 060B29EB996BD9F2
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,4 @@
{{- $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>