Skip to content

Commit

Permalink
Add page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ashermorgan committed Apr 12, 2024
1 parent 9eaa8f0 commit 7235fd4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion songs2slides/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
2 changes: 2 additions & 0 deletions songs2slides/templates/create-step-1.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "layout.html" %}

{% set title = 'Create' %}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='create.css') }}"/>
<script src="{{ url_for('static', filename='create.js') }}"></script>
Expand Down
2 changes: 2 additions & 0 deletions songs2slides/templates/create-step-2.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "layout.html" %}

{% set title = 'Create' %}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='create.css') }}"/>
<script src="{{ url_for('static', filename='create.js') }}"></script>
Expand Down
2 changes: 2 additions & 0 deletions songs2slides/templates/create-step-3.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "layout.html" %}

{% set title = 'Create' %}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='create.css') }}"/>
<script src="{{ url_for('static', filename='create.js') }}"></script>
Expand Down
2 changes: 1 addition & 1 deletion songs2slides/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>SongsSlides</title>
<title>{% if title %}{{ title }} - {% endif %}SongsSlides</title>
<meta name="description" content="An easy-to-use tool that automatically finds song lyrics and creates lyric slideshows">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='icon-32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename='icon-32.png') }}">
Expand Down

0 comments on commit 7235fd4

Please sign in to comment.