<!doctype html>
<html lang="{{ lang }}">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% if page is defined and page.description %}
    <meta name="description" content="{{ page.description }}">
    {% elif section is defined and section.description %}
    <meta name="description" content="{{ section.description }}">
    {% elif term is defined %}
    <meta name="description" content="Contenus associés à « {{ term.name }} » dans {{ config.title }}.">
    {% elif taxonomy is defined %}
    <meta name="description" content="Index « {{ taxonomy.name }} » de {{ config.title }}.">
    {% else %}
    <meta name="description" content="{{ config.description }}">
    {% endif %}
    <meta name="author" content="{{ config.extra.author }}">
    {% if current_url is defined %}
    <link rel="canonical" href="{{ current_url | safe }}">
    {% endif %}
    <meta property="og:site_name" content="{{ config.title }}">
    <link rel="alternate" type="application/atom+xml" title="{{ config.title }} — Atom"
        href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}">
    <link rel="alternate" type="application/rss+xml" title="{{ config.title }} — RSS"
        href="{{ get_url(path='rss.xml', trailing_slash=false) | safe }}">
    <title>{% block title %}{{ config.title }}{% endblock title %}</title>
    <link rel="icon" type="image/png" sizes="64x64" href="{{ get_url(path='images/favicon.png') | safe }}">
    <link rel="stylesheet" href="{{ get_url(path='main.css') | safe }}">
</head>

<body>
    {% set nav_path = current_path | default(value="") %}

    {% if nav_path == "/" %}
    <div itemscope itemtype="https://schema.org/WebSite">
        <link itemprop="url" href="{{ get_url(path='@/_index.md') | safe }}">
        <meta itemprop="name" content="{{ config.title }}">
        <meta itemprop="alternateName" content="lescarnetsdakkadien.netig.net">
    </div>
    {% endif %}

    <a class="skip-link" href="#contenu">Aller au contenu</a>

    <header class="site-header">
        <div class="container site-header__inner">
            <a class="site-title" href="{{ get_url(path='@/_index.md') | safe }}">
                <span class="site-title__text">{{ config.title }}</span>
                <span class="site-title__cuneiform" lang="akk-Xsux" aria-hidden="true">𒀝𒅗𒁺𒌑𒌝</span>
            </a>

            <nav class="site-nav" aria-label="Navigation principale">
                <ul>
                    <li>
                        <a href="{{ get_url(path='@/signes/_index.md') | safe }}" {% if "/signes/" in nav_path
                            or "/lectures/" in nav_path %} aria-current="location" {% endif %}>Signes</a>
                    </li>
                    <li>
                        <a href="{{ get_url(path='@/vocabulaire/_index.md') | safe }}" {% if "/vocabulaire/" in nav_path
                            or "/natures/" in nav_path %} aria-current="location" {% endif %}>Vocabulaire</a>
                    </li>
                    <li>
                        <a href="{{ get_url(path='@/grammaire/_index.md') | safe }}" {% if "/grammaire/" in nav_path
                            or "/themes/" in nav_path %} aria-current="location" {% endif %}>Grammaire</a>
                    </li>
                    <li>
                        <a href="{{ get_url(path='@/textes/_index.md') | safe }}" {% if "/textes/" in nav_path
                            or "/genres/" in nav_path %} aria-current="location" {% endif %}>Textes</a>
                    </li>
                    <li>
                        <a href="{{ get_url(path='@/articles/_index.md') | safe }}" {% if "/articles/" in nav_path %}
                            aria-current="location" {% endif %}>Articles</a>
                    </li>
                </ul>
            </nav>
        </div>
    </header>

    <main id="contenu" class="container site-main">
        {% block content %}{% endblock content %}
    </main>

    <footer class="site-footer">
        <div class="container site-footer__inner">
            <div class="site-footer__links">
                <address class="site-footer__contact">
                    <a href="mailto:{{ config.extra.email }}">Me contacter</a>
                </address>

                <nav aria-label="Liens complémentaires">
                    <a href="{{ get_url(path='@/bibliographie.md') | safe }}">
                        Bibliographie
                    </a>

                    <a href="{{ get_url(path='@/mentions-legales.md') | safe }}">
                        Mentions légales
                    </a>

                    <a href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}" type="application/atom+xml">
                        Flux Atom
                    </a>

                    <a href="{{ get_url(path='rss.xml', trailing_slash=false) | safe }}" type="application/rss+xml">
                        Flux RSS
                    </a>
                </nav>
            </div>

            <p class="site-footer__license">
                <small>
                    Sauf mention contraire, le contenu original du site web
                    {{ config.extra.author }} est placé sous licence
                    <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.fr" rel="license">
                        CC BY-SA 4.0
                    </a>
                </small>
            </p>
        </div>
    </footer>
</body>

</html>
