2020-10-03 09:40:01 +00:00
|
|
|
{% set blist = [] %}
|
|
|
|
{% 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 pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}
|
|
|
|
{% set tmplst = [] %}
|
2020-10-03 09:42:32 +00:00
|
|
|
<ul>
|
2020-10-03 09:40:01 +00:00
|
|
|
{% for page in pages %}
|
|
|
|
{% set blisted = false %}
|
2020-10-03 09:42:32 +00:00
|
|
|
<li> {{ page}} </li>
|
2020-10-03 09:40:01 +00:00
|
|
|
{% for bcat in blist %}
|
|
|
|
{% if bcat in page.taxonomy["category"] %}
|
|
|
|
{% set blisted = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if not blisted %}
|
|
|
|
{% set tmplst = tmplst|merge([page]) %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-10-03 09:42:32 +00:00
|
|
|
</ul>
|
2020-10-03 09:40:01 +00:00
|
|
|
{% set pages = tmplst|slice(0,10) %}
|
|
|
|
|
|
|
|
<section class="topiclist">
|
|
|
|
<ul>
|
|
|
|
{% for p in pages %}
|
|
|
|
{% if p.header.media == 'video' %}
|
|
|
|
<li class="video">
|
|
|
|
{% else %}
|
|
|
|
<li class="text">
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{p.url}}">{{ p.title|e }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</section>
|