Fix #2 List of tags

This commit is contained in:
Alexis Hassler
2019-05-04 21:52:13 +02:00
parent 6773809206
commit 8d635a3f71
12 changed files with 101 additions and 49 deletions

18
_global/Special:Tags.html Normal file
View File

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