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 sidebar: # params for the sidebar
maxentries: 5 # maximum number of articles to display in "Popular" and "Latest" sections maxentries: 5 # maximum number of articles to display in "Popular" and "Latest" sections
show: show:
categories: false # show Category list in the sidebar categories: true # show Category list in the sidebar
popular: true # show the Popular Articles sidebar popular: true # show the Popular Articles sidebar
latest: true # show the Latest 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 pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}
{% set tmplst = [] %} {% set tmplst = [] %}
<h2>{{ author }}</h2> <h2>{{ author }}</h2>
<ul>
{% for page in pages %} {% for page in pages %}
{% set blisted = false %} {% set blisted = false %}
<li> {{ page}} </li>
{% for bcat in blist %} {% for bcat in blist %}
{% if bcat in page.taxonomy["category"] %} {% if bcat in page.taxonomy["category"] %}
{% set blisted = true %} {% set blisted = true %}
@ -26,8 +24,7 @@
{% set tmplst = tmplst|merge([page]) %} {% set tmplst = tmplst|merge([page]) %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> {% set pages = tmplst|slice(0,maxcount) %}
{% set pages = tmplst|slice(0,10) %}
<section class="topiclist"> <section class="topiclist">
<ul> <ul>