1
Fork 0

Add private youtube embed shortcode

This commit is contained in:
Jake Howard 2020-12-01 19:29:21 +00:00
parent 17a1e7afbf
commit b0bfaef7d2
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<iframe
class="youtube-embed"
src="https://www.youtube-nocookie.com/embed/{{ .Get 0 }}"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>

View file

@ -194,6 +194,11 @@ pre.chroma {
iframe {
width: 100%;
height: 75vh;
&.youtube-embed {
margin-bottom: $paragraph-margin-bottom;
height: 50vh;
}
}
figure {