Skip to content

Commit f9d35e7

Browse files
committed
Dynamic page titles
1 parent 162dbdf commit f9d35e7

9 files changed

Lines changed: 17 additions & 1 deletion

File tree

templates/accounts/dashboard.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends 'base.html' %}
22

3+
{% block title %} | User Dashboard {% endblock %}
4+
35
{% block content %}
46
<section id="showcase-inner" class="py-5 text-white">
57
<div class="container">

templates/accounts/login.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends 'base.html' %}
22

3+
{% block title %} | Account Login {% endblock %}
4+
35
{% block content %}
46
<section id="login" class="bg-light py-5">
57
<div class="container">

templates/accounts/register.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends 'base.html' %}
22

3+
{% block title %} | Register Account {% endblock %}
4+
35
{% block content %}
46
<section id="register" class="bg-light py-5">
57
<div class="container">

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- Lightbox -->
1616
<link rel="stylesheet" href="{% static 'css/lightbox.min.css' %}">
1717

18-
<title>BT Real Estate</title>
18+
<title>BT Real Estate {% block title %}{% endblock %}</title>
1919
</head>
2020

2121
<body>

templates/listings/listing.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% load humanize %}
44

5+
{% block title %} | {{ listing.title }} {% endblock %}
6+
57
{% block content %}
68
<section id="showcase-inner" class="py-5 text-white">
79
<div class="container">

templates/listings/listings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% load humanize %}
44

5+
{% block title %} | Browse Property Listings {% endblock %}
6+
57
{% block content %}
68
<section id="showcase-inner" class="py-5 text-white">
79
<div class="container">

templates/listings/search.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% load humanize %}
44

5+
{% block title %} | Search Results {% endblock %}
6+
57
{% block content %}
68
<section id="showcase-inner" class="showcase-search text-white py-5">
79
<div class="container">

templates/pages/about.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% load static %}
44

5+
{% block title %} | About Us {% endblock %}
6+
57
{% block content %}
68
<section id="showcase-inner" class="py-5 text-white">
79
<div class="container">

templates/pages/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% load humanize %}
44

5+
{% block title %} | Welcome {% endblock %}
6+
57
{% block content %}
68
<!-- Showcase -->
79
<section id="showcase">

0 commit comments

Comments
 (0)