mirror of
https://github.com/PrivSec-dev/privsec.dev.git
synced 2025-06-29 00:27:15 -04:00
improve youtube shortcode (#21)
This commit is contained in:
parent
e71be60e17
commit
912096e167
3 changed files with 20 additions and 2 deletions
4
layouts/shortcodes/youtube.html
Normal file
4
layouts/shortcodes/youtube.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue