Add private youtube embed shortcode
This commit is contained in:
parent
17a1e7afbf
commit
b0bfaef7d2
2 changed files with 12 additions and 0 deletions
7
layouts/shortcodes/youtube.html
Normal file
7
layouts/shortcodes/youtube.html
Normal 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>
|
|
@ -194,6 +194,11 @@ pre.chroma {
|
|||
iframe {
|
||||
width: 100%;
|
||||
height: 75vh;
|
||||
|
||||
&.youtube-embed {
|
||||
margin-bottom: $paragraph-margin-bottom;
|
||||
height: 50vh;
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
|
|
Loading…
Reference in a new issue