{% extends "base.html" %}

{% block content %}
{%- set date_format = macros_translate::translate(key="date_format", default="%B %d, %Y", language_strings=language_strings) -%}
{%- set date_locale = macros_translate::translate(key="date_locale", default="en_US", language_strings=language_strings) -%}
{%- set number_of_posts = term.pages | length -%}

{%- set term_name = "“" ~ term.name ~ "”" -%}
<h1>
	{{- macros_translate::translate(key="posts_with_tag", default="Posts with tag $TAG", language_strings=language_strings) | replace(from="$TAG", to=term_name) -}}
	<a href="{{ current_url ~ 'atom.xml' }}"><i class="icon feed"></i></a>
</h1>

<p>
	<small>
		<a href="{{ get_url(path='tags', lang=lang) }}">
			{{ macros_translate::translate(key="all_tags", default="See all tags", language_strings=language_strings) }}
		</a>
		<br />
		{{ macros_translate::translate(key="posts", number=number_of_posts, default="$NUMBER posts", language_strings=language_strings) }}
	</small>
</p>

{% include "partials/articles.html" %}
{% endblock content %}
