Support youtube movies
This commit is contained in:
parent
e871e2a29a
commit
2e447d722c
4
themes/outerspace/layouts/shortcodes/youtube.html
Normal file
4
themes/outerspace/layouts/shortcodes/youtube.html
Normal 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>
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user