summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsof <lsof@mailbox.org>2025-09-02 14:29:42 +0200
committerlsof <lsof@mailbox.org>2025-09-02 16:59:54 +0200
commita2110fb70ad0471754aebc8519737980b10df8d5 (patch)
treec0e3e83538494d4d4d20e8c1c0497a58ae922308
parentba7fd8ed5809bb73971a9caf6c382c17782e0f60 (diff)
404, exlinks
-rw-r--r--config.toml2
-rw-r--r--static/style.css5
-rw-r--r--templates/404.html17
3 files changed, 24 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 3d43084..9b58f5a 100644
--- a/config.toml
+++ b/config.toml
@@ -19,5 +19,7 @@ taxonomies = [
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = false
+external_links_class = "external_link"
+
[extra]
# Put all your custom variables here
diff --git a/static/style.css b/static/style.css
index f67c2c0..1e9d803 100644
--- a/static/style.css
+++ b/static/style.css
@@ -101,6 +101,11 @@ a:hover {
text-decoration: underline;
text-decoration-style: dotted;
}
+/*external links*/
+a.external_link::after {
+ content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNqEkIEJwCAMBGPpEs7hHK6hY+gauoZr6Bo6RtqEWkxb6EMQnuM/USEirIoxSmOKwDkhBEwp4VPkb4801Xun9xW4e+9FldYarLUvkBPPOp4JGWOgtSaSt6VWQKUU9nPOEiSIgAmNMdadFTjn7utqrXwh6fLvH9nXhamW5ksMnpfDnw4BBgBfunO056MmqAAAAABJRU5ErkJggg==);
+
+}
td,th {
vertical-align:top;
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..0fe2d8e
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>404 Not Found</title>
+ <link rel="stylesheet" href="/style.css"/>
+</head>
+
+<body>
+ <h1 class="title">404 Not Found</h1>
+ <p>Wrong turn.
+ <a href="/">Back home</a></p>
+</body>
+
+</html>