feat: create hayflow, a zola theme
This commit is contained in:
15
templates/cards/columns.html
Normal file
15
templates/cards/columns.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ section.content | safe }}
|
||||
|
||||
<div class="columns">
|
||||
{% for page in section.pages %}
|
||||
<div>
|
||||
<h2>{{ page.title }}</h2>
|
||||
|
||||
{% for icon in page.extra.icons | default(value=[]) %}
|
||||
<i class="{{ icon }} fa-3x"></i>
|
||||
{% endfor %}
|
||||
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
19
templates/cards/list.html
Normal file
19
templates/cards/list.html
Normal file
@ -0,0 +1,19 @@
|
||||
{{ section.content | safe }}
|
||||
|
||||
{% for page in section.pages %}
|
||||
{% set_global link_after = not link_after | default(value=false) %}
|
||||
<h2>{{ page.title }}</h2>
|
||||
<div class="list">
|
||||
{% if link_after %}
|
||||
{{ page.content | safe }}
|
||||
{% endif %}
|
||||
|
||||
{% if page.extra.link %}
|
||||
<a aria-label="external link" class="list_link" href="{{ page.extra.link }}" target="_blank" rel="noopener noreferrer">Découvrir</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not link_after %}
|
||||
{{ page.content | safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
1
templates/cards/simple.html
Normal file
1
templates/cards/simple.html
Normal file
@ -0,0 +1 @@
|
||||
{{ section.content | safe }}
|
Reference in New Issue
Block a user