{% set currentRoute = app.request.attributes.get('_route') %}

{% if currentRoute == 'starred' %}
    {{ 'entry.page_titles.starred'|trans }}
{% elseif currentRoute == 'archive' %}
    {{ 'entry.page_titles.archived'|trans }}
{% elseif currentRoute == 'all' %}
    {{ isFiltered ? 'entry.page_titles.filtered'|trans : 'entry.page_titles.all'|trans }}
{% elseif currentRoute == 'search' %}
    {{ 'entry.page_titles.filtered_search'|trans }} {{ filter }}
{% elseif currentRoute == 'tag_entries' %}
    {{ 'entry.page_titles.filtered_tags'|trans }} {{ filter }}
{% elseif currentRoute == 'untagged' %}
    {{ 'entry.page_titles.untagged'|trans }}
{% else %}
    {{ 'entry.page_titles.unread'|trans }}
{% endif %}
