From 339ffde323e0d94f0c48b9ed5e4d80d4715ad997 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 15 Jun 2022 09:33:53 +0100 Subject: [PATCH] Allow images to be optional --- website/common/templates/common/content_page.html | 4 +++- website/home/templates/home/home_page.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/website/common/templates/common/content_page.html b/website/common/templates/common/content_page.html index 8d77f95..1756e39 100644 --- a/website/common/templates/common/content_page.html +++ b/website/common/templates/common/content_page.html @@ -3,7 +3,9 @@ {% load wagtailimages_tags %} {% block content %} - +{% if page.hero_image %} + +{% endif %}
diff --git a/website/home/templates/home/home_page.html b/website/home/templates/home/home_page.html index ec03cd2..cfd626b 100644 --- a/website/home/templates/home/home_page.html +++ b/website/home/templates/home/home_page.html @@ -3,7 +3,7 @@ {% load wagtailimages_tags %} {% block main %} -
+

{{ page.heading }}