templates: Generate more specific page titles

This commit is contained in:
finga 2023-02-15 05:22:13 +01:00
parent f71e947586
commit 6cceafb21b
5 changed files with 18 additions and 1 deletions

View file

@ -1,5 +1,10 @@
{% extends "base.html" %}
{% block title %}
{% set section = get_section(path=page.ancestors | last) %}
{{ config.title }} - {{ section.title }} - {{ page.title }}: {{ page.date }}
{% endblock title %}
{% block content %}
{% set section = get_section(path=page.ancestors | last) %}
<h1 class="title">{{ config.title }}</h1>