2019-08-13 15:16:48 +02:00
|
|
|
{% assign rawtags = "" %}
|
2021-08-20 16:48:07 +02:00
|
|
|
{% for page in site.pages %}
|
|
|
|
{% assign ttags = page.tags | join:'|' | append:'|' %}
|
2019-08-13 15:16:48 +02:00
|
|
|
{% assign rawtags = rawtags | append:ttags %}
|
|
|
|
{% endfor %}
|
|
|
|
{% assign rawtags = rawtags | split:'|' | sort %}
|
|
|
|
|
|
|
|
{% assign site.tags = "" %}
|
|
|
|
{% for tag in rawtags %}
|
|
|
|
{% if tag != "" %}
|
|
|
|
{% if tags == "" %}
|
|
|
|
{% assign tags = tag | split:'|' %}
|
|
|
|
{% endif %}
|
|
|
|
{% unless tags contains tag %}
|
|
|
|
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
|
|
|
|
{% endunless %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|