Move from Hugo to Zola
This commit is contained in:
parent
aa8a58141d
commit
4c1aa547e1
51 changed files with 353 additions and 563 deletions
15
templates/shortcodes/figure.html
Normal file
15
templates/shortcodes/figure.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<figure>
|
||||
<img src="{{ src }}" {% if alt %}alt="{{ alt }}"{% endif %} {% if first %} fetchpriority="high" decoding="async" {%
|
||||
else %} loading="lazy" decoding="async" {% endif %}>
|
||||
{% if caption or alt %}
|
||||
<figcaption>
|
||||
<p>
|
||||
{% if caption %}
|
||||
{{ caption }}
|
||||
{% elif alt %}
|
||||
{{ alt }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
Loading…
Add table
Add a link
Reference in a new issue