summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-05-24 21:15:35 -0500
committerStarfall <us@starfall.systems>2023-05-24 21:15:35 -0500
commit5cc740bc4f46d7454e3bd87937bce14699e6793f (patch)
treed9f380566b96f1bee6331a61c51676e09ada2585
parent54de12dbe77201377ad620d687798dc142f5dc14 (diff)
adjust blogposts a bit
-rw-r--r--_includes/blogpost.njk43
-rw-r--r--src/blog/blog.json2
-rw-r--r--src/blog/centralization-through-decentralization.md2
-rw-r--r--src/blog/hidden.md7
-rw-r--r--src/blog/not-a-femboy.md6
-rw-r--r--src/blog/why-blog.md4
6 files changed, 48 insertions, 16 deletions
diff --git a/_includes/blogpost.njk b/_includes/blogpost.njk
new file mode 100644
index 0000000..dce49b7
--- /dev/null
+++ b/_includes/blogpost.njk
@@ -0,0 +1,43 @@
+---
+title = "Starfall"
+---
+<!doctype html>
+<html lang=en-US dir=ltr>
+<head>
+	<title>{{ title }}</title>
+	<meta charset=UTF-8>
+	<meta name=robots content="noindex, nofollow">
+	<meta name=viewport content="width=device-width, initial-scale=1">
+	<link rel=stylesheet href=/css/terminal.css>
+	{{ extraHeadContent | safe }}
+</head>
+
+<body>
+<!-- todo color picker -->
+
+<header>
+	<h1>{{ title }}</h1>
+	<nav aria-label=primary>
+		{% set navs = collections.all | eleventyNavigation %}
+		<ul>{%- for nav in navs %}
+			<li>
+				<a href="{{ nav.url }}"{% if nav.url == '/blog/' %} class="active"{% endif %}>{{ nav.title }}</a>
+			</li>{%- endfor %}
+		</ul>
+	</nav>
+</header>
+
+<article>
+{% if author %}{{ author }} {% endif -%}
+{% if date %}{{ date | local_date }}{% endif -%}
+{{ content | safe }}
+</article>
+
+<footer>
+<section>
+	<p>This site is 100% <a href=https://git.starfall.systems/web>source-available</a>. © 2020-2023 Starfall. See <a href=https://git.starfall.systems/web/tree/COPYING.md rel=license>COPYING.md</a>.
+</section>
+<div style=text-align:center>⋁/⋀</div>
+</footer>
+
+</body>
diff --git a/src/blog/blog.json b/src/blog/blog.json
index 53d184b..3b8c3c7 100644
--- a/src/blog/blog.json
+++ b/src/blog/blog.json
@@ -1,5 +1,5 @@
 {
-	"layout": "base.njk",
+	"layout": "blogpost.njk",
 	"title": "Untitled Blog Post",
 	"tags": ["post"]
 }
diff --git a/src/blog/centralization-through-decentralization.md b/src/blog/centralization-through-decentralization.md
index dc8e6f3..aa6d19d 100644
--- a/src/blog/centralization-through-decentralization.md
+++ b/src/blog/centralization-through-decentralization.md
@@ -1,7 +1,7 @@
 ---
 title = "Centralization Through Decentralization"
 date = 2023-05-24T20:00:00-05:00
-tags = [ "software" ]
+categories = [ "software" ]
 ---
 An opinion piece was recently published in Wired magazine titled ["The Hidden Dangers of the Decentralized
 Web"](https://www.wired.com/story/the-hidden-dangers-of-the-decentralized-web/). It makes a lot of basic factual errors, conflates valid reasons to mistrust centralized social media with antisemitic conspiracy theories and grifts, and somehow even manages to make basic security practice out as conspiratorial. I'm not all that interested in giving it the time of day, except for one paragraph that stuck out to me.
diff --git a/src/blog/hidden.md b/src/blog/hidden.md
deleted file mode 100644
index 330b617..0000000
--- a/src/blog/hidden.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-eleventyExcludeFromCollections = true
-permalink = false
----
-Both of the above booleans need to be set for a post to be a proper draft. Without `permalink=false`, the page will
-still be generated and be available as a direct link. Without `eleventExcludeFromCollections=true`, a link will be
-generated on starfall.systems/blog and the Atom feed (though if permalink is off, it won't go anywhere).
diff --git a/src/blog/not-a-femboy.md b/src/blog/not-a-femboy.md
index aee96a9..79c0170 100644
--- a/src/blog/not-a-femboy.md
+++ b/src/blog/not-a-femboy.md
@@ -1,9 +1,7 @@
 ---
-eleventyExcludeFromCollections = true
-permalink = false
-
+draft = true
 title = "Why I'm Not a Femboy"
-tags = ["gender"]
+categories = ["gender"]
 ---
 <style> * { text-transform: lowercase } </style>
 
diff --git a/src/blog/why-blog.md b/src/blog/why-blog.md
index 1cd6838..49a2c61 100644
--- a/src/blog/why-blog.md
+++ b/src/blog/why-blog.md
@@ -1,7 +1,5 @@
 ---
-eleventyExcludeFromCollections = true
-permalink = false
-
+draft = true
 title = "Why a Blog in 2023?"
 ---
 - because i want to