From 13bb905713b2d77937eb4449a69840eeb1d726d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= <tlovinator@gmail.com> Date: Thu, 8 Dec 2022 13:55:35 +0100 Subject: [PATCH] Add title to all pages --- discord_rss_bot/templates/add.html | 2 +- discord_rss_bot/templates/base.html | 2 +- discord_rss_bot/templates/feed.html | 2 +- discord_rss_bot/templates/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discord_rss_bot/templates/add.html b/discord_rss_bot/templates/add.html index 2cb6e80..9548e87 100644 --- a/discord_rss_bot/templates/add.html +++ b/discord_rss_bot/templates/add.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Index{% endblock %} +{% block title %} | Add new feed{% endblock %} {% block content %} {# Home / Add #} <nav aria-label="breadcrumb"> diff --git a/discord_rss_bot/templates/base.html b/discord_rss_bot/templates/base.html index 4c546fd..abbe713 100644 --- a/discord_rss_bot/templates/base.html +++ b/discord_rss_bot/templates/base.html @@ -6,7 +6,7 @@ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> - <title>RSS - {% block title %}{% endblock %}</title> + <title>discord-rss-bot{% block title %}{% endblock %}</title> {% block head %}{% endblock %} </head> <body class="text-white-50" style="background: #111111;"> diff --git a/discord_rss_bot/templates/feed.html b/discord_rss_bot/templates/feed.html index 41f8c82..fa404b3 100644 --- a/discord_rss_bot/templates/feed.html +++ b/discord_rss_bot/templates/feed.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Feed{% endblock %} +{% block title %} | {{ feed.title }}{% endblock %} {% block content %} <div class="p-2 mb-2"> <a class="text-muted" href="{{ feed.link }}"><h2>{{ feed.title }}</h2></a> diff --git a/discord_rss_bot/templates/index.html b/discord_rss_bot/templates/index.html index c838d07..e22645d 100644 --- a/discord_rss_bot/templates/index.html +++ b/discord_rss_bot/templates/index.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Index{% endblock %} +{% block title %}{% endblock %} {% block head %} <script> var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))