mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-09-22 00:43:38 +02:00
First public release
This commit is contained in:
commit
deee53f745
66 changed files with 1956 additions and 0 deletions
8
templates/shortcodes/figure.html
Normal file
8
templates/shortcodes/figure.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% if src %}
|
||||
<figure class="{% if position %}{{ position }}{% else -%} center {%- endif %}" >
|
||||
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %}{% if style %} style="{{ style }}"{% endif %} />
|
||||
{% if caption %}
|
||||
<figcaption class="{% if caption_position %}{{ caption_position }}{% else -%} center {%- endif %}"{% if caption_style %} style="{{ caption_style | safe }}"{% endif %}>{{ caption }}</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
{% endif %}
|
3
templates/shortcodes/image.html
Normal file
3
templates/shortcodes/image.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if src %}
|
||||
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %} class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%- if style %} style="{{ style | safe }}" {%- endif %} />
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue