Support youtube movies

This commit is contained in:
Ariejan de Vroom 2016-04-11 10:44:56 +02:00
parent e871e2a29a
commit 2e447d722c
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<div class="embed video-player">
<iframe class="youtube-player" type="text/html" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" src="http://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
</iframe>
</div>

View File

@ -260,3 +260,11 @@ ul#social li a {
}
}
.video-player {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
margin-bottom: 30px;
}