This commit is contained in:
cuu 2024-02-22 00:03:39 -08:00
parent f12ee2050a
commit ade394dc7d
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -1,6 +1,7 @@
---
layout: simple
title: SSH
tags: GameShell
revisions:
- author: Cuu
date: 2024-02-22