mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-01 15:01:36 +00:00
Add 404 page (#3105)
This commit is contained in:
parent
5f3cb583ab
commit
9f0de8199f
11
www/templates/404.html
Normal file
11
www/templates/404.html
Normal 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 %}
|
@ -9,7 +9,7 @@
|
|||||||
{# This block should set html_title appropriately -#}
|
{# This block should set html_title appropriately -#}
|
||||||
{% block title %} {% endblock title -%}
|
{% block title %} {% endblock title -%}
|
||||||
<title>{{ html_title | default(value=config.title) | safe }}</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 #}
|
{#TODO: only generate this for the home page #}
|
||||||
<link rel="alternate" type="application/atom+xml" title="Sitewide Atom feed" href="/atom.xml">
|
<link rel="alternate" type="application/atom+xml" title="Sitewide Atom feed" href="/atom.xml">
|
||||||
<link rel="stylesheet" href="/css/site.css">
|
<link rel="stylesheet" href="/css/site.css">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user