Merge branch 'master' into pages

This commit is contained in:
jetstream0
2023-08-23 07:03:45 +05:30
8 changed files with 55 additions and 2 deletions

View File

@@ -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

View File

@@ -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: "🌙";

18
templates/404.html Normal file
View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>404 page not found</title>
<link rel="icon" type="image/png" href="/favicon.ico">
<link rel="stylesheet" href="/styles/global.css">
</head>
<body>
[[ component:dark-mode-checkbox ]]
<div id="main">
<h1>404: Page Not Found</h1>
<p>Return to <a href="/">Main Page</a>?</p>
<p>Eventually, there will probably be something interesting here. For now, just use your imagination.<p>
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<div class="random" id="quote3">
<div class="random-content">
<span>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?</span>
<br>
<span>- Otomo no Sakanoe</span>
</div>
<a href="/#quote4">More random stuff</a>
</div>

View File

@@ -0,0 +1,9 @@
<div class="random" id="quote4">
<div class="random-content">
<span>"Oh why don't you work like other folks do?" "How can I get a job when you're holding down two?"</span>
<br>
<span>- Utah Phillips, "Hallelujah, I'm a Bum"</span>
</div>
<a href="/#rss">More random stuff</a>
</div>

View File

@@ -0,0 +1,7 @@
<div class="random" id="rss">
<div class="random-content">
<span>This blog has a <a href="/atom.xml">rss feed</a>!</span>
</div>
<a href="/#badges">More random stuff</a>
</div>

View File

@@ -2,5 +2,5 @@
<div class="random-content">
<span>Bored? Go down a <a href="https://en.wikipedia.org/wiki/Main_Page">Wikipedia</a> rabbithole!</span>
</div>
<a href="/#badges">More random stuff</a>
<a href="/#quote3">More random stuff</a>
</div>

View File

@@ -31,8 +31,11 @@
[[ component:random/quote2 ]]
[[ component:random/minesweeper ]]
[[ component:random/wikipedia ]]
[[ component:random/quote3 ]]
[[ component:random/quote4 ]]
[[ component:random/rss ]]
<a id="ciran" href="/#badges">See some random stuff</a>
</div>
</div>
</body>
</html>
</html>