forked from KEMT/zpwiki
zz
This commit is contained in:
parent
e5d03a6ab5
commit
d83bab6465
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user