From ab48bfa194a3d24679062217dbe55e7eead51bee Mon Sep 17 00:00:00 2001 From: Starfall Date: Wed, 17 May 2023 20:26:42 -0500 Subject: switch to toml frontmatter --- src/blog.njk | 12 ++++++------ src/blog/foobar.md | 6 +++--- src/blog/hello-world.md | 7 +++---- src/index.html | 4 ++-- 4 files changed, 14 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/blog.njk b/src/blog.njk index 29709f7..dd04288 100644 --- a/src/blog.njk +++ b/src/blog.njk @@ -1,10 +1,10 @@ --- -layout: base.njk -pagination: - data: collections.post - size: 20 - reverse: true - alias: posts +layout = "base.njk" +[pagination] +data = "collections.post" +alias = "posts" +size = 20 +reverse = true --- {% for post in posts %}
diff --git a/src/blog/foobar.md b/src/blog/foobar.md index 081799b..9c3c805 100644 --- a/src/blog/foobar.md +++ b/src/blog/foobar.md @@ -1,6 +1,6 @@ --- -layout: base.njk -tags: ["post"] -title: Some second post +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 0feadd7..d75c546 100644 --- a/src/blog/hello-world.md +++ b/src/blog/hello-world.md @@ -1,7 +1,6 @@ --- -layout: base.njk -title: Hello, World! -tags: - - post +layout = "base.njk" +title = "Hello, World!" +tags = [ "post" ] --- Hello, World! diff --git a/src/index.html b/src/index.html index e4aa82e..1af2fb6 100644 --- a/src/index.html +++ b/src/index.html @@ -1,6 +1,6 @@ --- -layout: base.njk -title: starfall.systems +title = "starfall.systems" +layout = "base.njk" --- Hello, World! -- cgit