From 4c8a88d20cf54a70bd000fd8b7c5772118d2309a Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 14 Mar 2024 21:35:58 +0000 Subject: [PATCH] more base.html automation --- templates/base.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index 113b240..c77134e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,9 +10,14 @@ {% block head %}{% endblock %} +{% if year %} +{% firstof year as current_year %} +{% else %} +{% firstof "2023" as current_year %} +{% endif %}