mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-09-25 18:23:40 +02:00
migration, more images, index.html, youtube.html
This commit is contained in:
parent
4438fd659e
commit
8a58ed2bfe
7 changed files with 50 additions and 23 deletions
19
templates/shortcodes/youtube.html
Normal file
19
templates/shortcodes/youtube.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
.responsive-iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
<div {% if class %}class="{{class}}"{% endif %}>
|
||||
<iframe
|
||||
class="responsive-iframe"
|
||||
src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}"
|
||||
webkitallowfullscreen
|
||||
mozallowfullscreen
|
||||
allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue