Show both page and website titles in the webpage html doc instead of only showing the website title

This commit is contained in:
Skyflare 2024-02-26 16:19:39 +03:00
parent e7a9e6552d
commit 6e9d63d43b
3 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@
# The URL the site will be built for
base_url = "https://libregaming.org"
title = "LibreGaming"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

View File

@ -6,7 +6,7 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LibreGaming</title>
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<link href="{{ config.base_url | safe }}/style.css" rel="stylesheet">
</head>

View File

@ -1,6 +1,7 @@
{% extends "base.html" %}
<!-- SPDX-License-Identifier: CC0-1.0 -->
{% block title %}{{ page.title }} - {{ super() }} {% endblock title %}
{% block content %}
{{ page.content | safe }}
{% endblock content %}