From 23b6ca69c916ee2b6d4a831600d0d07ae184eee8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 7 Mar 2026 15:12:20 +0100 Subject: [PATCH] correction des erreurs de syntaxe pour zola --- templates/base.html | 6 ++--- templates/partials/head.html | 43 ++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/templates/base.html b/templates/base.html index 13d13c1..e41aed1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,9 +1,9 @@ - -{% block head %} {% endblock head %} - + + {% include "partials/head.html" %} +

Le site de Hatmos

diff --git a/templates/partials/head.html b/templates/partials/head.html index 54ceacf..a40f419 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -1,27 +1,22 @@ -{% extends "base.html" %} - -{% block head %} - - - - {% if page %} - {{page.title}} - {% elif section %} - {{section.title}} - {% else %} - {{config.title}} - {% endif %} - - + + {% if page %} - <meta name="description" content="{{page.description}}"> + {{page.title}} {% elif section %} - <meta name="description" content="{{section.description}}"> + {{section.title}} + {% else %} + {{config.title}} {% endif %} - {% if page and page.extra.keywords %} - <meta name="keywords" content="{{page.extra.keywords | join(sep=', ')}}"> - {% endif %} - <link rel="stylesheet" href="{{get_url(path='style.css')}}"> - <link rel="icon" type="image/png" href="{{get_url(path='favicon.png')}}"> -</head> -{% endblock head %} + + +{% if page %} + +{% elif section %} + +{% endif %} +{% if page and page.extra.keywords %} + +{% endif %} + + +