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