wiki.clockworkpi.com/_global/Special:Categories.html
cuu 0176419d17 try to fix
Liquid Exception: Liquid error (line 2): Cannot sort a null object. in
 /github/workspace/_global/Special:***
2024-02-21 23:17:55 -08:00

20 lines
520 B
HTML

---
layout: default
title: Tags
menu: ['global']
---
<ul>
{% if site.data.wiki_tags %}
{%- assign sorted_tags = site.data.wiki_tags | sort -%}
{%- for tag in sorted_tags -%}
{%- assign counter = 0 -%}
{%- for other_page in site.data.wiki_pages %}
{%- if other_page.tags contains tag -%}
{%- assign counter = counter | plus: 1 -%}
{%- endif -%}
{%- endfor -%}
{% endif %}
<li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}">{{ tag }}</a> ({{counter}} pages)</li>
{%- endfor -%}
</ul>