From 3d8862e2e94d531fa53f006cbef5e8213fc4e169 Mon Sep 17 00:00:00 2001 From: sarahframe Date: Tue, 27 Aug 2024 20:37:53 +1200 Subject: [PATCH] add site name to page title --- templates/500.html | 5 +++-- templates/base.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/500.html b/templates/500.html index c5ba34ab..a9e255d9 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,10 +1,11 @@ {% extends 'error_base.html' %} {% load static wagtailcore_tags %} -{# defaults to 404, but pass error code and message for alternate use #} {% firstof page_title 'Not Found' as title %} {% block content %} -{% with desc=message|default:"Something went wrong. Please try reloading the page, or return to home" %} +{% autoescape off %} +{% with desc="Something went wrong. Please try reloading the page, or return to home" %} +{% endautoescape %} {% with image_src='images/cdh_500.webp' %} {% include 'includes/error_hero.html' with title='Error 500' description=desc %} {% endwith %} diff --git a/templates/base.html b/templates/base.html index 8f2c207c..c4f640b6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,7 +7,7 @@ - {% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}{% block title_suffix %}{% endblock %} + {% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}{% block title_suffix %}{% endblock %} – CDH@Princeton {% include "includes/favicons.html" %} {% include "snippets/head_meta.html" %}