mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-09-23 17:23:39 +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
|
@ -103,7 +103,7 @@
|
|||
|
||||
<span class="copyright-theme">
|
||||
<span class="copyright-theme-sep">:: </span>
|
||||
Theme: <a href="https://github.com/pawroman/zola-theme-terminimal/">Terminimal</a> by pawroman
|
||||
Powered by <a href="https://www.getzola.org/">Zola</a> <a href="https://github.com/pawroman/zola-theme-terminimal/">Terminimal Theme</a>.
|
||||
</span>
|
||||
</div>
|
||||
{% endif -%}
|
||||
|
|
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