init repo
This commit is contained in:
28
templates/taxonomy_list.html
Normal file
28
templates/taxonomy_list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% extends "base.html" %}
|
||||
{% import 'macros/card.html' as macro_card -%}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
{% 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>
|
||||
{% for page in taxo.pages %}
|
||||
{% if loop.index0 == 3 %}
|
||||
{% break %}
|
||||
{% endif %}
|
||||
<div class="column is-one-third">
|
||||
{% if page.taxonomies.Tag %}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
|
||||
{% else %}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="", abstract=page.summary, tags="", date=page.date) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user