blog/templates/taxonomy_list.html

29 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2023-03-31 21:59:07 +02:00
{% extends "base.html" %}
{% import 'macros/card.html' as macro_card -%}
{% block content %}
2023-04-08 19:43:40 +02:00
{% for taxo in terms %}
<div class="columns is-multiline mt-6">
<a class="plus-articles button is-link is-light is-medium has-text-weight-bold" href="{{ taxo.permalink }}">
{{ taxo.name }}
<i class="computer fas fa-chevron-right mx-2" ></i>
</a>
2023-03-31 21:59:07 +02:00
{% for page in taxo.pages %}
2023-05-06 20:30:36 +02:00
{% if loop.index0 == 3 %}
{% break %}
{% endif %}
<div class="column is-one-third">
{% if page.taxonomies.Tag %}
2023-04-08 19:43:40 +02:00
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
2023-05-06 20:30:36 +02:00
{% else %}
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags="", date=page.date) }}
{% endif %}
</div>
2023-04-08 19:43:40 +02:00
{% endfor %}
</div>
{% endfor %}
2023-03-31 21:59:07 +02:00
{% endblock content %}