fix youtube section + add docs

This commit is contained in:
Adrien Beudin 2017-05-03 19:19:55 +02:00
parent d3ab827cce
commit 0749e9fec2
5 changed files with 16 additions and 6 deletions

View File

@ -5,6 +5,7 @@ Changelog
* Add audio HTML5 player
* Update Material theme
* Add youtube section
0.4 (2016-12-11)

View File

@ -139,9 +139,7 @@ This section is for add audio file with HTML5 player.::
- type: audio
title: Title of song
image:
name: song.ogg
type: audio
image: song.ogg
Author
@ -157,6 +155,17 @@ This section is for describe the author of the story::
facebook: beudbeud (Optional)
website: plop.fr (Optional)
Youtube
-------
This section make your embeds youtube video responsive::
- type: youtube
video_id: nshFXWEKxs4
You can get the id from the url of the video https://www.youtube.com/watch?v=nshFXWEKxs4
Advanced options
________________

View File

@ -1,5 +1,5 @@
<section class="bordered-picture">
<div class="youtube-container">
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ section.video_id }}" frameborder="0" allowfullscreen></iframe>
</div>
</section>

View File

@ -1,5 +1,5 @@
<section class="pictures-group">
<div class="youtube-container">
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ section.video_id }}" frameborder="0" allowfullscreen></iframe>
</div>
</section>

View File

@ -1,6 +1,6 @@
<div class=container>
<div class="youtube-container">
<iframe width="560" height="315" src="https://www.youtube.com/embed/nshFXWEKxs4" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ section.video_id }}" frameborder="0" allowfullscreen></iframe>
</div>
</div>