Utilise maintenant Zola v0.23.1

This commit is contained in:
julien
2026-08-06 20:23:55 +02:00
parent 1767245f10
commit d7b8aeab93
30 changed files with 759 additions and 1170 deletions
+44 -81
View File
@@ -1,76 +1,61 @@
<!doctype html>
<html lang="{{ lang }}">
{% set nav_path = current_path if current_path is defined else "" %}
{% set atom_enabled = config.generate_feeds and "atom.xml" in config.feed_filenames %}
<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 name="description" content="{% block description -%}
{%- if page is defined and page.description -%}
{{- page.description -}}
{%- elif section is defined and section.description -%}
{{- section.description -}}
{%- elif term is defined -%}
{%- set term_label = term.name | replace(from="-", to=" ") if taxonomy.name != "lectures" else term.name -%}
Contenus associés à « {{ term_label }} » dans {{ config.title }}.
{%- elif taxonomy is defined -%}
Index « {{ taxonomy.name }} » de {{ config.title }}.
{%- else -%}
{{- config.description -}}
{%- endif -%}
{%- endblock description %}">
<meta name="author" content="{{ config.author }}">
{% if current_url is defined %}<link rel="canonical" href="{{ current_url }}">{% 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 }}">
{% if atom_enabled %}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }} — Atom"
href="{{ get_url(path='atom.xml', trailing_slash=false) }}">
{% endif %}
<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 }}">
<link rel="icon" type="image/png" sizes="64x64" href="{{ get_url(path='images/favicon.png') }}">
<link rel="stylesheet" href="{{ get_url(path='giallo.css', trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path='main.css') }}">
</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>
<div itemscope itemtype="https://schema.org/WebSite">
<link itemprop="url" href="{{ get_url(path='@/_index.md') }}">
<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 }}">
<a class="site-title" href="{{ get_url(path='@/_index.md') }}">
<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>
<li><a href="{{ get_url(path='@/signes/_index.md') }}"{% 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') }}"{% 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') }}"{% 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') }}"{% 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') }}"{% if "/articles/" in nav_path %} aria-current="location"{% endif %}>Articles</a></li>
</ul>
</nav>
</div>
@@ -83,40 +68,18 @@
<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>
<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>
<a href="{{ get_url(path='@/bibliographie.md') }}">Bibliographie</a>
<a href="{{ get_url(path='@/mentions-legales.md') }}">Mentions légales</a>
{% if atom_enabled %}<a href="{{ get_url(path='atom.xml', trailing_slash=false) }}" type="application/atom+xml">Flux Atom</a>{% endif %}
</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>
<p class="site-footer__license"><small>
Sauf mention contraire, le contenu original du site web {{ config.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>