{% unless page.categories == empty %}
- {% assign categories_list = page.categories %} {% if categories_list.first[0] == null %} {% for category in categories_list %}
- {{ category | join: "/" }} ({{ site.categories[category].size }}) {% unless forloop.last %},{% endunless %} {% endfor %} {% else %} {% for category in categories_list %}
- {{ category[0] | join: "/" }} /{{ category[1].size }}) {% endfor %} {% endif %}
- {% assign tags_list = page.tags %} {% if tags_list.first[0] == null %} {% for tag in tags_list %}
- {{ tag }} ({{ site.tags[tag].size }}) {% unless forloop.last %},{% endunless %} {% endfor %} {% else %} {% for tag in tags_list %}
- {{ tag[0] }} ({{ tag[1].size }}) {% unless forloop.last %},{% endunless %} {% endfor %} {% endif %} {% assign tags_list = nil %}