Skip to content

Commit

Permalink
add site name to page title
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahframe committed Aug 27, 2024
1 parent ab5d103 commit 3d8862e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions templates/500.html
Original file line number Diff line number Diff line change
@@ -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 <a href="/">return to home</a>" %}
{% endautoescape %}
{% with image_src='images/cdh_500.webp' %}
{% include 'includes/error_hero.html' with title='Error 500' description=desc %}
{% endwith %}
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}{% block title_suffix %}{% endblock %}</title>
<title>{% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}{% block title_suffix %}{% endblock %} – CDH@Princeton</title>

{% include "includes/favicons.html" %}
{% include "snippets/head_meta.html" %}
Expand Down

0 comments on commit 3d8862e

Please sign in to comment.