mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2026-03-29 08:02:40 +02:00
Issue #3 list of pages (by name)
This commit is contained in:
17
_global/Special:ListUsers.html
Normal file
17
_global/Special:ListUsers.html
Normal 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>
|
||||
Reference in New Issue
Block a user