Skip to content

Commit e008481

Browse files
committed
fix paths + add missing youtube include
1 parent 51d811d commit e008481

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ defaults:
7575
values:
7676
layout: new-docs
7777
version: "latest"
78-
permalink: "/latest/:path/"
78+
permalink: "/:path/"

_includes/youtube.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% if include.width != '' %}
2+
<div style='width: {{include.width}}; margin-bottom: 2em;'>
3+
{% else %}
4+
<div>
5+
{% endif %}
6+
<div class="youtube-container"
7+
style="position: relative;
8+
width: 100%;
9+
height: 0;
10+
padding-bottom: 56.25%">
11+
12+
<iframe class="youtube-video"
13+
style="position: absolute;
14+
top: 0;
15+
left: 0;
16+
width: 100%;
17+
height: 100%;
18+
border: 0"
19+
allowfullscreen
20+
src="https://www.youtube.com/embed/{{include.id}}">
21+
</iframe>
22+
</div>
23+
</div>

0 commit comments

Comments
 (0)