From a95b90896e8f704c2f519c3acefbfb4e6b0e013a Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 28 Jul 2020 23:45:28 +0200 Subject: [PATCH] Made title tag configurable the django way. --- source/lostplaces/lostplaces_app/templates/global.html | 6 +----- source/lostplaces/lostplaces_app/templates/placeList.html | 2 ++ .../lostplaces/lostplaces_app/templates/placeOverview.html | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/lostplaces/lostplaces_app/templates/global.html b/source/lostplaces/lostplaces_app/templates/global.html index dfde7a3..367590f 100644 --- a/source/lostplaces/lostplaces_app/templates/global.html +++ b/source/lostplaces/lostplaces_app/templates/global.html @@ -7,11 +7,7 @@ - {% if title%} - {{title}}|UrbEx - {% else %} - Urban Exploration - {% endif %} + {% block title %}Urban Exploration{% endblock %} diff --git a/source/lostplaces/lostplaces_app/templates/placeList.html b/source/lostplaces/lostplaces_app/templates/placeList.html index 898a06e..4437c5a 100644 --- a/source/lostplaces/lostplaces_app/templates/placeList.html +++ b/source/lostplaces/lostplaces_app/templates/placeList.html @@ -1,6 +1,8 @@ {% extends 'global.html'%} {% load static %} +{% block title %}Lost Places{% endblock %} + {% block maincontent %}