mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
added pictures/gallery. organized media better
This commit is contained in:
parent
b0d420c311
commit
4886fa19c9
65 changed files with 318 additions and 112 deletions
|
|
@ -1,6 +1,2 @@
|
|||
<figure class="{% if class %} {{ class }} {% endif %}">
|
||||
<img src="{{ get_url(path=src) }}" loading="lazy" decoding="async" class="zoomable">
|
||||
{% if caption != "" %}
|
||||
<figcaption>{{ caption }}</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
{% import "macros/figures.html" as figures %}
|
||||
{{ figures::image(src=src, caption=caption) }}
|
||||
|
|
@ -1,17 +1,9 @@
|
|||
<figure class="{% if class %} {{ class }} {% endif %}">
|
||||
<video
|
||||
{% if poster %} poster="{{ poster }}"{% endif %}
|
||||
{% if loop | default(value=false) %} loop {% endif %}
|
||||
{% if controls | default(value=true) %} controls {% endif %}
|
||||
preload="metadata"
|
||||
muted
|
||||
{% if autoplay | default(value=false) %} autoplay {% endif %}
|
||||
playsinline
|
||||
>
|
||||
<source src="{{ get_url(path=src) }}">
|
||||
</video>
|
||||
{% if caption != "" %}
|
||||
<figcaption>{{ caption }}</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
|
||||
{% import "macros/figures.html" as figures %}
|
||||
{{ figures::video(
|
||||
src=src,
|
||||
caption=caption,
|
||||
loop=loop | default(value=false),
|
||||
controls=controls | default(value=true),
|
||||
autoplay=autoplay | default(value=false),
|
||||
poster=poster | default(value=""))
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue