404: Page Not Found
+Return to Main Page?
+Eventually, there will probably be something interesting here. For now, just use your imagination.
+
From 5cbc55262ab923746a549395037273f11f6b0dfd Mon Sep 17 00:00:00 2001 From: jetstream0 <49297268+jetstream0@users.noreply.github.com> Date: Mon, 21 Aug 2023 22:16:56 +0200 Subject: [PATCH] add new random stuff --- index.ts | 3 +++ static/styles/global.css | 4 ++++ templates/404.html | 18 ++++++++++++++++++ templates/components/random/quote3.html | 9 +++++++++ templates/components/random/quote4.html | 9 +++++++++ templates/components/random/rss.html | 7 +++++++ templates/components/random/wikipedia.html | 2 +- templates/index.html | 5 ++++- 8 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 templates/404.html create mode 100644 templates/components/random/quote3.html create mode 100644 templates/components/random/quote4.html create mode 100644 templates/components/random/rss.html diff --git a/index.ts b/index.ts index 03fa42c..e74913c 100644 --- a/index.ts +++ b/index.ts @@ -45,6 +45,9 @@ builder.serve_template(renderer, "/", "index", { posts: posts_metadata, }); +//404 page (github pages) +builder.serve_template(renderer, "/404.html", "404", {}); + //blog posts //if two tags reduce down to the same slug, oh well, not my problem diff --git a/static/styles/global.css b/static/styles/global.css index 999acb1..d1b5bea 100644 --- a/static/styles/global.css +++ b/static/styles/global.css @@ -102,6 +102,10 @@ label[for="dark-mode"] { font-size: 1.3rem; } +label[for="dark-mode"]:hover { + cursor: pointer; +} + #dark-mode + label[for="dark-mode"]::after { color: black; content: "🌙"; diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..5e746da --- /dev/null +++ b/templates/404.html @@ -0,0 +1,18 @@ + + +
+ + +Return to Main Page?
+Eventually, there will probably be something interesting here. For now, just use your imagination.
+