add new random stuff
This commit is contained in:
3
index.ts
3
index.ts
@@ -45,6 +45,9 @@ builder.serve_template(renderer, "/", "index", {
|
|||||||
posts: posts_metadata,
|
posts: posts_metadata,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//404 page (github pages)
|
||||||
|
builder.serve_template(renderer, "/404.html", "404", {});
|
||||||
|
|
||||||
//blog posts
|
//blog posts
|
||||||
|
|
||||||
//if two tags reduce down to the same slug, oh well, not my problem
|
//if two tags reduce down to the same slug, oh well, not my problem
|
||||||
|
|||||||
@@ -102,6 +102,10 @@ label[for="dark-mode"] {
|
|||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label[for="dark-mode"]:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#dark-mode + label[for="dark-mode"]::after {
|
#dark-mode + label[for="dark-mode"]::after {
|
||||||
color: black;
|
color: black;
|
||||||
content: "🌙";
|
content: "🌙";
|
||||||
|
|||||||
18
templates/404.html
Normal file
18
templates/404.html
Normal 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>
|
||||||
9
templates/components/random/quote3.html
Normal file
9
templates/components/random/quote3.html
Normal 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>
|
||||||
|
|
||||||
9
templates/components/random/quote4.html
Normal file
9
templates/components/random/quote4.html
Normal 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>
|
||||||
|
|
||||||
7
templates/components/random/rss.html
Normal file
7
templates/components/random/rss.html
Normal 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>
|
||||||
|
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
<div class="random-content">
|
<div class="random-content">
|
||||||
<span>Bored? Go down a <a href="https://en.wikipedia.org/wiki/Main_Page">Wikipedia</a> rabbithole!</span>
|
<span>Bored? Go down a <a href="https://en.wikipedia.org/wiki/Main_Page">Wikipedia</a> rabbithole!</span>
|
||||||
</div>
|
</div>
|
||||||
<a href="/#badges">More random stuff</a>
|
<a href="/#quote3">More random stuff</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -31,8 +31,11 @@
|
|||||||
[[ component:random/quote2 ]]
|
[[ component:random/quote2 ]]
|
||||||
[[ component:random/minesweeper ]]
|
[[ component:random/minesweeper ]]
|
||||||
[[ component:random/wikipedia ]]
|
[[ component:random/wikipedia ]]
|
||||||
|
[[ component:random/quote3 ]]
|
||||||
|
[[ component:random/quote4 ]]
|
||||||
|
[[ component:random/rss ]]
|
||||||
<a id="ciran" href="/#badges">See some random stuff</a>
|
<a id="ciran" href="/#badges">See some random stuff</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user