404 page + snap footer to bottom
This commit is contained in:
parent
ab64aa8384
commit
b5bccfda52
3 changed files with 35 additions and 14 deletions
6
templates/404.html
Normal file
6
templates/404.html
Normal 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 %}
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue