From a2110fb70ad0471754aebc8519737980b10df8d5 Mon Sep 17 00:00:00 2001 From: lsof Date: Tue, 2 Sep 2025 14:29:42 +0200 Subject: 404, exlinks --- config.toml | 2 ++ static/style.css | 5 +++++ templates/404.html | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 templates/404.html 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 @@ + + + + + + + 404 Not Found + + + + +

404 Not Found

+

Wrong turn. + Back home

+ + + -- cgit v1.2.3