commit: b845c7f39e1e6b8c47fca6acb0b1456657672435
parent cb442cc9380310d78f19105674e0fe1a95a4d0c1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 21 Feb 2025 17:02:45 +0100
404: make static + compressed
Diffstat:
4 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -2,6 +2,7 @@
 *.swo
 config.php
 datalove
+/404.xhtml
 /bookmarks.xsl
 /bookmarks.html
 /entry.xsl
diff --git a/404.shtml b/404.shtml
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-	<head>
-<!--#include file="templates/head.shtml" -->
-		<title>404 not found</title>
-	</head>
-	<body>
-<!--#include file="templates/en/nav.shtml" -->
-		<main>
-			<h1><em>Oops</em> you found a <em>Dead Link !</em></h1>
-<!--#include file="images/deadlink.svg" -->
-		</main>
-<!--#include file="templates/en/footer.shtml" -->
-	</body>
-</html>
diff --git a/404.xhtml.in b/404.xhtml.in
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:xi="http://www.w3.org/2001/XInclude"
+	xml:lang="en" lang="en"
+>
+	<head>
+		<xi:include href="templates/head.xml" parse="xml" xpointer="xpointer(/xml/*)"/>
+		<title>404 Not Found — lanodan’s cyber-home</title>
+	</head>
+	<body>
+	<xi:include href="templates/en/nav.xml" parse="xml"/>
+		<main>
+			<h1><em>Oops</em> you found a <em>Dead Link !</em></h1>
+			<xi:include href="images/deadlink.svg" parse="xml"/>
+		</main>
+	<xi:include href="templates/en/footer.shtml" parse="xml"/>
+	</body>
+</html>
diff --git a/build.ninja b/build.ninja
@@ -39,6 +39,8 @@ build atom.fr.xsl: xinclude atom.fr.xsl.in
 
 build templates/en/nav.xml: xslt templates/en/nav.xml.in | templates/en/nav.xsl
 
+build 404.xhtml: xinclude 404.xhtml.in | templates/head.xml templates/en/nav.xml templates/en/footer.shtml images/deadlink.svg
+build 404.xhtml.br: brotli 404.xhtml
 build animelist.xhtml: xinclude animelist.xhtml.in | templates/head.xml templates/en/nav.xml templates/en/footer.shtml
 build animelist.xhtml.br: brotli animelist.xhtml
 build projects/index.xhtml: xinclude projects/index.in.xhtml | templates/head.xml templates/en/nav.xml templates/en/footer.shtml