layout |
---|
default |
{% assign all_categories = site.documents | map: "categories" | join: ", " | split : ", " | compact | uniq | sort %} {% assign all_page_tags = site.pages | map : "tags" | join: ", " | split : ", " | compact | uniq | sort %} {% assign all_post_tags = site.posts | map : "tags" | join: ", " | split : ", " | compact | uniq | sort %} {% assign all_tags = all_page_tags | concat: all_post_tags %} {% assign all_tags = all_page_tags | compact %}
There are {{all_categories | size}} categories and {{all_tags | size}} tags in use. Pages have {{ all_page_tags | size }} unique tags, posts have {{all_post_tags | size}}.
{% for tag in all_tags %} {% if all_categories contains tag %} Tag "{{tag}}" is also a category. Consider updating {{site.tags[tag] | map: "url" | join: ", " }}. {% endif %} {% endfor %}
{{ site.posts | where: "categories", "" | map: "url" | join: ", "}}
{{ site.posts | where: "tags", "" | map: "url" | join: ", "}}
{{ site.pages | where: "categories", "" | map: "url" | join: ", "}}
{{ site.pages | where: "tags", "" | map: "url" | join: ", "}}
{{all_categories | join: "
"}}
{{all_tags | join: "
"}}
{% for page in site.posts %} {% assign cat_size = page.categories | size %} {% if cat_size > 1 %}
- {{page.url}} : {{ page.categories | join: ", "}} {% endif %} {% endfor %}