From 84ab34f3e096b8ff5689aad6f26e01bfa1f5f8c4 Mon Sep 17 00:00:00 2001 From: Maxime Le Conte des Floris Date: Wed, 8 Jun 2022 12:23:15 +0200 Subject: [PATCH] fix: website title --- pelicanconf.py | 2 +- theme/templates/index.html | 2 +- theme/templates/page.html | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index 9404b16..943b3a9 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -13,7 +13,7 @@ BIND = "127.0.0.1" AUTHOR = "Maxime" -SITENAME = "www.mlcdf.fr" +SITENAME = "Maxime Le Conte des Floris" SITEURL = f"http://{BIND}:{PORT}" DESCRIPTION = "Bienvenue sur la page personnelle de Maxime Le Conte des Floris. Le jour, il est artisan logiciel et ingénieur DevOps. La nuit, c'est un photographe en herbe et mordu de cinéma." diff --git a/theme/templates/index.html b/theme/templates/index.html index e3ce509..60642fd 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} -{% block title %} {{SITENAME}} — Artisan logiciel {% endblock %} +{% block title %}Blog — {{SITENAME}}{% endblock %} {% block content %}

Billets

diff --git a/theme/templates/page.html b/theme/templates/page.html index d084b0d..c9dfb64 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -1,12 +1,12 @@ {% extends "layout.html" %} -{% block title %} - {% if page.title != "Accueil" %} +{% block title -%} + {%- if page.title != "Accueil" -%} {{page.title}} — {{ SITENAME }} - {% else %} + {%- else -%} {{ SITENAME }} - {% endif %} -{% endblock %} + {%- endif %} +{%- endblock %} {% block metadata %}