This commit is contained in:
Daniel Hladek 2020-10-03 16:35:54 +02:00
parent e5d03a6ab5
commit d83bab6465
2 changed files with 2 additions and 5 deletions

View File

@ -21,6 +21,6 @@ params:
sidebar: # params for the sidebar
maxentries: 5 # maximum number of articles to display in "Popular" and "Latest" sections
show:
categories: false # show Category list in the sidebar
categories: true # show Category list in the sidebar
popular: true # show the Popular Articles sidebar
latest: true # show the Latest Articles sidebar

View File

@ -13,10 +13,8 @@
{% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}
{% set tmplst = [] %}
<h2>{{ author }}</h2>
<ul>
{% for page in pages %}
{% set blisted = false %}
<li> {{ page}} </li>
{% for bcat in blist %}
{% if bcat in page.taxonomy["category"] %}
{% set blisted = true %}
@ -26,8 +24,7 @@
{% set tmplst = tmplst|merge([page]) %}
{% endif %}
{% endfor %}
</ul>
{% set pages = tmplst|slice(0,10) %}
{% set pages = tmplst|slice(0,maxcount) %}
<section class="topiclist">
<ul>