404 page + snap footer to bottom

This commit is contained in:
kleines Filmröllchen 2025-05-13 14:59:02 +02:00
parent ab64aa8384
commit b5bccfda52
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
3 changed files with 35 additions and 14 deletions

6
templates/404.html Normal file
View file

@ -0,0 +1,6 @@
{% extends "page.html" %}
{% block content %}
<h1>404 Unavailable for URL Reasons</h1>
<p>Diese Seite gibt es nicht. Vielleicht ist sie im Cyber verschwunden. <a href="{{ get_url(path='/') }}">Zurück zur Startseite</a>.</p>
{% endblock content %}

View file

@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<!-- prettier-ignore -->
{% if page.title %} {% set title = page.title %}
<!-- prettier-ignore -->
@ -22,6 +22,11 @@
{% else %} {% set description = "" %}
<!-- prettier-ignore -->
{% endif %}
<!-- prettier-ignore -->
{% if page.content %} {% set content = page.content %}
<!-- prettier-ignore -->
{% endif %}
<html lang="{{ config.default_language }}">
<head>
<meta charset="UTF-8" />
@ -101,8 +106,16 @@
</header>
<main id="main-content">
<section class="main-text">
{% if section %} {{ section.content | safe }} {% else %} {{ page.content
| safe }} {% endif %}
<!-- prettier-ignore -->
{% block content %}
<!-- prettier-ignore -->
{% if section %} {{ section.content | safe }}
<!-- prettier-ignore -->
{% else %} {{ page.content | safe }}
<!-- prettier-ignore -->
{% endif %}
<!-- prettier-ignore -->
{% endblock content %}
</section>
</main>
<footer>