summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-05-17 20:18:32 -0500
committerStarfall <us@starfall.systems>2023-05-17 20:18:32 -0500
commit1cc3d1798ec2b7d0cc2fde3f97aea346a22176bf (patch)
tree4036f0cc4c1ef9df246b22fa5f9b2503d9d3d3c8 /src
parent82f220a494300971b93fafda39a853e2e103574a (diff)
move stuff into folders, start on blog page
Diffstat (limited to 'src')
-rw-r--r--src/blog.njk14
-rw-r--r--src/blog/foobar.md6
-rw-r--r--src/blog/hello-world.md7
-rw-r--r--src/index.html6
4 files changed, 33 insertions, 0 deletions
diff --git a/src/blog.njk b/src/blog.njk
new file mode 100644
index 0000000..29709f7
--- /dev/null
+++ b/src/blog.njk
@@ -0,0 +1,14 @@
+---
+layout: base.njk
+pagination:
+  data: collections.post
+  size: 20
+  reverse: true
+  alias: posts
+---
+{% for post in posts %}
+<article>
+	<h2><a href="{{ post.url | url }}">{{ post.data.title }}</a></h2>
+	<time datetime="{{ post.date | rfc3339_datetime }}">{{ post.date | local_date }}</time>
+</article>
+{% endfor %}
diff --git a/src/blog/foobar.md b/src/blog/foobar.md
new file mode 100644
index 0000000..081799b
--- /dev/null
+++ b/src/blog/foobar.md
@@ -0,0 +1,6 @@
+---
+layout: base.njk
+tags: ["post"]
+title: Some second post
+---
+Second post, hooray!
diff --git a/src/blog/hello-world.md b/src/blog/hello-world.md
new file mode 100644
index 0000000..0feadd7
--- /dev/null
+++ b/src/blog/hello-world.md
@@ -0,0 +1,7 @@
+---
+layout: base.njk
+title: Hello, World!
+tags:
+  - post
+---
+Hello, World!
diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..e4aa82e
--- /dev/null
+++ b/src/index.html
@@ -0,0 +1,6 @@
+---
+layout: base.njk
+title: starfall.systems
+---
+
+Hello, World!