feat: add title to pages with title

This commit is contained in:
Kat Inskip 2025-07-08 11:49:56 -07:00
parent 967a5a6cc5
commit cfa8c8d479
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 25 additions and 1 deletions

24
templates/base-title.html Normal file
View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }} - {{ config.extra.site_title }}</title>
{% include "head.html" %}
</head>
<body>
<div>
<header>
{% include "header.html" %}
</header>
<main>
{% block content %} {% endblock content %}
</main>
<footer>
{% include "footer.html" %}
</footer>
</div>
</body>
</html>

View file

@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "base-title.html" %}
{% block content %} {% block content %}
<h1 class="title"> <h1 class="title">