We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ac90b commit 2041be5Copy full SHA for 2041be5
sass/_extra.scss
@@ -88,3 +88,18 @@ h6:hover .anchor {
88
margin-bottom: 32px;
89
}
90
91
+
92
+.ratio169 {
93
+ position: relative;
94
+ width: 100%;
95
+ height: 0;
96
+ padding-bottom: 56.25%;
97
98
+ & > iframe {
99
+ position: absolute;
100
+ left: 0;
101
+ top: 0;
102
103
+ height: 100%;
104
+ }
105
+}
templates/shortcodes/youtube.html
@@ -0,0 +1,6 @@
1
+<figure class="inline-image">
2
+ <div class="ratio169">
3
+ <iframe width="100%" src="https://www.youtube.com/embed/{{ id }}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
4
+ </div>
5
+ {% if caption %}<figcaption><p>{{caption}}</p></figcaption>{% endif %}
6
+</figure>
0 commit comments