From 361a88454ced14754678fd1abaeb227ec28e71b9 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 7 Jan 2024 12:38:50 -0500 Subject: [PATCH] add donation nag to photo pages --- templates/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index a384b95..f4c9cc6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,12 +5,14 @@ {% set content = page.content | default(value=section.content) %} {% set extra = page.extra | default(value=section.extra) %} {% set is_blog_post = path != "/blog/" and path is starting_with("/blog/") %} +{% set is_photo_page = path != "/photography/" and path is starting_with("/photography/") %} {% else %} {# If here, we are on the 404 page #} {% set title = "NOT FOUND" %} {% set path = "/404" %} {% set extra = [] %} {% set is_blog_post = false %} +{% set is_photo_page = false %} {% endif %} @@ -144,7 +146,7 @@ {# Footer #}