{% extends "base.html" %}
{% import "macros.html" as macros %}

{% block title %}{{ section.title }} · {{ config.title }}{% endblock title %}

{% block content %}
{% include "partials/section-header.html" %}

{{ section.content | safe }}

{{ macros::taxonomy_nav(
    kind="natures",
    heading_id="vocabulaire-index-title",
    title="Explorer le vocabulaire",
    description="Retrouver les mots par nature grammaticale.",
    path="natures",
    link_label="Par nature grammaticale"
) }}

{% if section.pages %}
    <h2>Liste des mots</h2>
    <ul class="entry-list">
        {% for page in section.pages %}
            <li>
                <a href="{{ page.permalink | safe }}"><span lang="akk-Latn">{{ page.title }}</span></a>
                {% if page.extra.meaning %} — {{ page.extra.meaning }}{% endif %}
                <div class="entry-list__meta">
                    {{ macros::taxonomy_links(terms=page.taxonomies.natures, kind="natures") }}
                    {% if page.extra.gender %} · {{ page.extra.gender }}{% endif %}
                </div>
            </li>
        {% endfor %}
    </ul>
{% endif %}
{% endblock content %}
