{% 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="lectures",
    heading_id="signes-index-title",
    title="Explorer les signes",
    description="Retrouver les signes par lecture.",
    path="lectures",
    link_label="Index des lectures"
) }}

{% if section.pages %}
    <h2>Liste des signes</h2>
    <ul class="entry-list">
        {% for page in section.pages %}
            <li>
                <a href="{{ page.permalink | safe }}">
                    <span class="cuneiform" lang="und-Xsux" aria-hidden="true">{{ page.extra.sign }}</span> {{ page.title }}
                </a>
                <div class="entry-list__meta">
                    MZL {{ page.extra.mzl }}
                    {% if page.taxonomies.lectures %}
                        ·
                        {{ macros::taxonomy_links(terms=page.taxonomies.lectures, kind="lectures") }}
                    {% endif %}
                </div>
            </li>
        {% endfor %}
    </ul>
{% endif %}
{% endblock content %}
