From 70a41aec09399fcba6ff9c4682ded9ce4e4a4e84 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 6 Jul 2023 15:25:33 -0400 Subject: [PATCH] custom home title --- templates/base.html | 2 ++ templates/index.html | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/templates/base.html b/templates/base.html index 03d2e72..4850b83 100644 --- a/templates/base.html +++ b/templates/base.html @@ -27,7 +27,9 @@ {% endif %} {# Page title #} + {% block title %} {{title}} | {{config.title}} + {% endblock title %} {# Site-wide styles #} diff --git a/templates/index.html b/templates/index.html index 08ac46f..fb2fb1e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,9 @@ {% block head %} {{ super() }} +{# Override title format for homepage #} +{% block title %}{{config.title}}{% endblock title %} + {% endblock head %} + + {# Pass data through to the base template #} {% block variable_wormhole %} {{ super() }}