summary refs log tree commit diff
path: root/_includes
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 /_includes
parent54de12dbe77201377ad620d687798dc142f5dc14 (diff)
adjust blogposts a bit
Diffstat (limited to '_includes')
-rw-r--r--_includes/blogpost.njk43
1 files changed, 43 insertions, 0 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>