{% extends "base.html" %}
{%- set uglyurls = config.extra.uglyurls | default(value=false) -%}
{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %}

{%- block seo %}
{{- super() }}
{%- set title = "Tag Feeds" %}

{%- if config.title %}
{%- set title_addition = title_separator ~ config.title %}
{%- else %}
{%- set title_addition = "" %}
{%- endif %}

{%- set description = config.description %}

{{- macros_seo::seo(config=config, title=title, title_addition=title_addition, description=description, is_home=true) }}
{%- endblock seo %}

{% block content %}
<div>
    {%- set terms = get_taxonomy(kind="tags") %}
    <h2>Tag Feeds</h2>
    <div class="c">
        <p>{% for term in terms.items %} #<a href="{{ term.permalink | safe }}/rss.xml">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
    </div>
</div>
{% endblock content %}
