Issue #3 list of pages (by name)

This commit is contained in:
Alexis Hassler
2019-05-05 18:46:56 +02:00
parent c4cf1d3670
commit a5d624dbca
5 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
---
layout: default
title: Users
menu: ['global']
---
{%- include /functions/wiki-tags.html -%}
<ul>
{%- for user in site.data.users -%}
{%- assign counter = 0 -%}
{%- for other_page in wiki_pages %}
{%- if other_page.author == user[0] -%}
{%- assign counter = counter | plus: 1 -%}
{%- endif -%}
{%- endfor -%}
<li><a href="/{{ site.data.i18n[site.lang].prefix.user }}{{ user[0] }}.html">{{ user[1].name }}</a> ({{counter}} pages)</li>
{%- endfor -%}
</ul>