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

View File

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