mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-12 16:58:50 +01:00
Liquid Exception: Liquid error (line 2): Cannot sort a null object. in /github/workspace/_global/Special:***
20 lines
520 B
HTML
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>
|