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 %} + + +