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 @@ + + + + + + 404 page not found + + + + + [[ component:dark-mode-checkbox ]] +
+

404: Page Not Found

+

Return to Main Page?

+

Eventually, there will probably be something interesting here. For now, just use your imagination.

+

+ + diff --git a/templates/components/random/quote3.html b/templates/components/random/quote3.html new file mode 100644 index 0000000..fe2f029 --- /dev/null +++ b/templates/components/random/quote3.html @@ -0,0 +1,9 @@ +
+
+ You say, "I will come." And you do not come. Now you say, "I will not come." So I shall expect you. Have I learned to understand you? +
+ - Otomo no Sakanoe +
+ More random stuff +
+ diff --git a/templates/components/random/quote4.html b/templates/components/random/quote4.html new file mode 100644 index 0000000..a81c32d --- /dev/null +++ b/templates/components/random/quote4.html @@ -0,0 +1,9 @@ +
+
+ "Oh why don't you work like other folks do?" "How can I get a job when you're holding down two?" +
+ - Utah Phillips, "Hallelujah, I'm a Bum" +
+ More random stuff +
+ diff --git a/templates/components/random/rss.html b/templates/components/random/rss.html new file mode 100644 index 0000000..d059102 --- /dev/null +++ b/templates/components/random/rss.html @@ -0,0 +1,7 @@ +
+
+ This blog has a rss feed! +
+ More random stuff +
+ diff --git a/templates/components/random/wikipedia.html b/templates/components/random/wikipedia.html index abad4a8..ca7ddd7 100644 --- a/templates/components/random/wikipedia.html +++ b/templates/components/random/wikipedia.html @@ -2,5 +2,5 @@
Bored? Go down a Wikipedia rabbithole!
- More random stuff + More random stuff diff --git a/templates/index.html b/templates/index.html index 3f3588e..ed09c3e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,8 +31,11 @@ [[ component:random/quote2 ]] [[ component:random/minesweeper ]] [[ component:random/wikipedia ]] + [[ component:random/quote3 ]] + [[ component:random/quote4 ]] + [[ component:random/rss ]] See some random stuff - \ No newline at end of file +