summary refs log tree commit diff
path: root/_includes
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2024-10-31 14:38:44 -0500
committerStarfall <us@starfall.systems>2024-10-31 14:38:44 -0500
commit879c7506971d5866d5195fcf6c58b759fd0eaa7a (patch)
treef880c82e03aac2fc2e42b5ad3c7098401022a2c5 /_includes
parenta84fe05db4df72341afad3cce3636b59b552c6c8 (diff)
refactor CSS
Diffstat (limited to '_includes')
-rw-r--r--_includes/archive.njk46
-rw-r--r--_includes/base.njk8
-rw-r--r--_includes/blogpost.njk9
3 files changed, 53 insertions, 10 deletions
diff --git a/_includes/archive.njk b/_includes/archive.njk
new file mode 100644
index 0000000..1425f6e
--- /dev/null
+++ b/_includes/archive.njk
@@ -0,0 +1,46 @@
+---
+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/base.css>
+	<script src='/js/moon-phase.js'></script>
+	{{ extraHeadContent | safe }}
+</head>
+
+<body>
+<header class=clearfix>
+	<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 == page.url %} class="active" aria-current="page"{% endif %}>{{ nav.title }}</a>
+			</li>{%- endfor %}
+		</ul>
+	</nav>
+	<div id=decor-moons aria-hidden=true></div>
+</header>
+
+<main>
+<section>
+	<b>Title</b>: {{ title }}<br/>
+	<b>Author</b>: {{ author }}<br/>
+	<b>Source</b>: <a href="{{ source }}">{{ source }}</a><br/>
+</section>
+
+<section>
+{{ content | safe }}
+</section>
+</main>
+
+<footer>
+<div style=text-align:center>∨/∧</div>
+</footer>
+
+</body>
diff --git a/_includes/base.njk b/_includes/base.njk
index 302f5cd..5924218 100644
--- a/_includes/base.njk
+++ b/_includes/base.njk
@@ -1,5 +1,8 @@
 ---
 title = "Starfall"
+
+[navOptions]
+activeAnchorClass = "active"
 ---
 <!doctype html>
 <html lang=en-US dir=ltr>
@@ -8,7 +11,7 @@ title = "Starfall"
 	<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>
+	<link rel=stylesheet href=/css/base.css>
 	<script src='/js/moon-phase.js'></script>
 	{{ extraHeadContent | safe }}
 </head>
@@ -34,9 +37,6 @@ title = "Starfall"
 </main>
 
 <footer>
-<section>
-	<p>This site is 100% <a href=https://git.starfall.systems/infra/web>source-available</a>. © 2020-2024 Starfall. See <a href=https://git.starfall.systems/infra/web/tree/COPYING.md rel=license>COPYING.md</a>.
-</section>
 <div style=text-align:center>∨/∧</div>
 </footer>
 
diff --git a/_includes/blogpost.njk b/_includes/blogpost.njk
index 5797199..3463250 100644
--- a/_includes/blogpost.njk
+++ b/_includes/blogpost.njk
@@ -8,7 +8,7 @@ title = "Starfall"
 	<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>
+	<link rel=stylesheet href=/css/base.css>
 	<script src='/js/moon-phase.js'></script>
 	{{ extraHeadContent | safe }}
 </head>
@@ -30,15 +30,12 @@ title = "Starfall"
 </header>
 
 <article>
-{% if author %}{{ author }} {% endif -%}
-{% if date %}{{ date | local_date }}{% endif -%}
+{% if author %}<b>Author:</b> {{ author }}<br/>{% endif -%}
+{% if date %}<b>Posted:</b> {{ date | local_date }}<br/>{% endif -%}
 {{ content | safe }}
 </article>
 
 <footer>
-<section>
-	<p>This site is 100% <a href=https://git.starfall.systems/infra/web>source-available</a>. © 2020-2024 Starfall. See <a href=https://git.starfall.systems/infra/web/tree/COPYING.md rel=license>COPYING.md</a>.
-</section>
 <div style=text-align:center>⋁/⋀</div>
 </footer>