From 7235fd40a7579d6329ab16dc0f9f3d7d4a16f6b9 Mon Sep 17 00:00:00 2001 From: Asher Morgan <59518073+ashermorgan@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:01:35 -0700 Subject: [PATCH] Add page titles --- songs2slides/__init__.py | 3 ++- songs2slides/templates/create-step-1.html | 2 ++ songs2slides/templates/create-step-2.html | 2 ++ songs2slides/templates/create-step-3.html | 2 ++ songs2slides/templates/layout.html | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/songs2slides/__init__.py b/songs2slides/__init__.py index a9ca5f4..e704fa4 100644 --- a/songs2slides/__init__.py +++ b/songs2slides/__init__.py @@ -2,7 +2,8 @@ from dotenv import load_dotenv def error_404(e): - return render_template('error.html', message='404 Not Found'), 404 + return render_template('error.html', message='404 Not Found', + title='Not Found'), 404 def create_app(): app = Flask(__name__) diff --git a/songs2slides/templates/create-step-1.html b/songs2slides/templates/create-step-1.html index ab7ddce..21ee528 100644 --- a/songs2slides/templates/create-step-1.html +++ b/songs2slides/templates/create-step-1.html @@ -1,5 +1,7 @@ {% extends "layout.html" %} +{% set title = 'Create' %} + {% block head %} diff --git a/songs2slides/templates/create-step-2.html b/songs2slides/templates/create-step-2.html index a6155ab..82211ab 100644 --- a/songs2slides/templates/create-step-2.html +++ b/songs2slides/templates/create-step-2.html @@ -1,5 +1,7 @@ {% extends "layout.html" %} +{% set title = 'Create' %} + {% block head %} diff --git a/songs2slides/templates/create-step-3.html b/songs2slides/templates/create-step-3.html index 3589d0f..407bac2 100644 --- a/songs2slides/templates/create-step-3.html +++ b/songs2slides/templates/create-step-3.html @@ -1,5 +1,7 @@ {% extends "layout.html" %} +{% set title = 'Create' %} + {% block head %} diff --git a/songs2slides/templates/layout.html b/songs2slides/templates/layout.html index 6d991ab..cac36a7 100644 --- a/songs2slides/templates/layout.html +++ b/songs2slides/templates/layout.html @@ -3,7 +3,7 @@
-