2019-06-17 11:20:06 +02:00
|
|
|
{% extends 'partials/base.html.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2019-06-25 21:35:37 +02:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
<div class="wrapper padding align-center">
|
|
|
|
{% include 'partials/simplesearch_searchbox.html.twig' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-06-17 11:20:06 +02:00
|
|
|
{% set catlist = taxonomy.taxonomy["category"]|keys %}
|
|
|
|
{% if grav.theme.config.params.articles.blacklist is defined %}
|
|
|
|
{% set blist = grav.theme.config.params.articles.blacklist %}
|
|
|
|
{% set tmplst = [] %}
|
|
|
|
{% for cat in catlist %}
|
|
|
|
{% if cat not in blist %}
|
|
|
|
{% set tmplst = tmplst|merge([cat]) %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% set catlist = tmplst %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% set rows=[] %}
|
|
|
|
{% set node=[] %}
|
|
|
|
{% set maxrows = 3 %}
|
|
|
|
{% if grav.theme.config.params.front.maxrows is defined %}
|
|
|
|
{% set maxrows = grav.theme.config.params.front.maxrows %}
|
|
|
|
{% endif %}
|
|
|
|
{% for cat in catlist|sort|slice(0,maxrows*2) %}
|
|
|
|
{% set node = node|merge([cat]) %}
|
|
|
|
{% if (node|length == 2) or (loop.last) %}
|
|
|
|
{% set rows = rows|merge([node]) %}
|
|
|
|
{% set node = [] %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if grav.theme.config.params.front.maxentries is defined %}
|
|
|
|
{% set maxcount = grav.theme.config.params.front.maxentries %}
|
|
|
|
{% endif %}
|
2019-06-25 21:35:37 +02:00
|
|
|
<section id="{{ page.header.section_id }}" class="row columns">
|
|
|
|
<div class="topic-list">
|
2019-06-17 11:20:06 +02:00
|
|
|
<h1>{{ ''|t }}</h1>
|
|
|
|
{% for row in rows %}
|
|
|
|
{% for cat in row %}
|
2019-06-25 21:35:37 +02:00
|
|
|
<div class="three columns topic-list">
|
2019-06-17 11:20:06 +02:00
|
|
|
{% include 'partials/frontlist.html.twig' with {'category': cat, 'maxcount': maxcount} %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2019-06-25 21:35:37 +02:00
|
|
|
|
2019-06-17 11:20:06 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2019-06-25 21:35:37 +02:00
|
|
|
</div>
|
|
|
|
|
2019-06-17 11:20:06 +02:00
|
|
|
{% endblock %}
|