Add 404 page (#3105)

This commit is contained in:
Ryan Kilpadi 2025-01-07 04:15:02 -05:00 committed by GitHub
parent 5f3cb583ab
commit 9f0de8199f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

11
www/templates/404.html Normal file
View File

@ -0,0 +1,11 @@
{% extends "htmx-theme/templates/base.html" %}
{% block title %}
{% set html_title = "</> htmx ~ 404 Not found " %}
{% endblock title %}
{% block content %}
<h1 style="margin-bottom: 500px;">
404 Not Found
</h1>
{% endblock content %}

View File

@ -9,7 +9,7 @@
{# This block should set html_title appropriately -#}
{% block title %} {% endblock title -%}
<title>{{ html_title | default(value=config.title) | safe }}</title>
<link rel="canonical" href="{{ current_url | safe }}">
{% if current_url %} <link rel="canonical" href="{{ current_url | safe }}"> {% endif %}
{#TODO: only generate this for the home page #}
<link rel="alternate" type="application/atom+xml" title="Sitewide Atom feed" href="/atom.xml">
<link rel="stylesheet" href="/css/site.css">