Skip to content

Commit 7b937a9

Browse files
committed
feat: add page title
1 parent ef6725b commit 7b937a9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎templates/base.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<title>MyBlog</title>
6+
<title>{% block title %}{% endblock title %} | Apollo</title>
77
<link rel="stylesheet" href="/style.css">
88
</head>
99

‎templates/index.html‎

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

3+
{% block title %}
4+
{{ section.title }}
5+
{% endblock title %}
6+
37
{% block content %}
48
{{ section.content | safe }}
59
{% endblock content %}

0 commit comments

Comments
 (0)