summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-05-24 10:32:11 -0500
committerStarfall <us@starfall.systems>2023-05-24 12:51:23 -0500
commiteb6d8bd51fb3a5ad9868829e19c838939346f8cb (patch)
tree59fef31c5389833f2ca639b4019de5e542328444
parent87a7df0947d3cc1ac224b9de15220d8fbf73ea46 (diff)
demonstrate draft post, set some defaults on blog
-rw-r--r--src/blog/blog.json5
-rw-r--r--src/blog/foobar.md2
-rw-r--r--src/blog/hello-world.md2
-rw-r--r--src/blog/hidden.md7
-rw-r--r--src/feed.njk2
5 files changed, 13 insertions, 5 deletions
diff --git a/src/blog/blog.json b/src/blog/blog.json
new file mode 100644
index 0000000..53d184b
--- /dev/null
+++ b/src/blog/blog.json
@@ -0,0 +1,5 @@
+{
+	"layout": "base.njk",
+	"title": "Untitled Blog Post",
+	"tags": ["post"]
+}
diff --git a/src/blog/foobar.md b/src/blog/foobar.md
index 499414e..01edcf8 100644
--- a/src/blog/foobar.md
+++ b/src/blog/foobar.md
@@ -1,6 +1,4 @@
 ---
-layout = "base.njk"
-tags = [ "post" ]
 title = "Second post"
 ---
 Second post, hooray!
diff --git a/src/blog/hello-world.md b/src/blog/hello-world.md
index d75c546..97b636e 100644
--- a/src/blog/hello-world.md
+++ b/src/blog/hello-world.md
@@ -1,6 +1,4 @@
 ---
-layout = "base.njk"
 title = "Hello, World!"
-tags = [ "post" ]
 ---
 Hello, World!
diff --git a/src/blog/hidden.md b/src/blog/hidden.md
new file mode 100644
index 0000000..330b617
--- /dev/null
+++ b/src/blog/hidden.md
@@ -0,0 +1,7 @@
+---
+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/feed.njk b/src/feed.njk
index d1a9c0a..8d21cef 100644
--- a/src/feed.njk
+++ b/src/feed.njk
@@ -1,5 +1,5 @@
 ---
-permalink = "feed.xml"
+permalink = "blog/feed.xml"
 
 [metadata]
 name = "devin & Alex Starfall"