{% extends "base.html" %}

{% block title %}
{{- page.title -}}
{% endblock %}

{% block main %}
<article class="h-entry">
  <header>
    <h1><span class="title p-name">{{ page.title }}</span></h1>
    <time class="dt-published" datetime="{{ page.date | date(format='%+') }}">{{ page.date | date(format="%F") }}</time>
    <p class="terms">
      {%- if page.taxonomies %}
      {%- for name, taxon in page.taxonomies %}
      {{ name | capitalize }}:
      {%- for item in taxon %}
      <a class="p-category" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
      {%- endfor %}
      {%- endfor %}
      {%- endif %}
    </p>
  </header>

  <main class="e-content">
    {{ page.content | safe }}
  </main>
</article>
{% endblock %}