From 900377c33488784768816f44df2c6c73f2c5828c Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Thu, 1 Feb 2024 21:27:55 -0800 Subject: [PATCH] feat: move all content to content dir --- src/{ => content}/pages/index.md | 0 src/content/pages/posts.md | 10 ++++++++++ src/{ => content}/posts/hello_world.md | 0 src/content/posts/posts.json | 5 +++++ src/posts/posts.json | 4 ---- 5 files changed, 15 insertions(+), 4 deletions(-) rename src/{ => content}/pages/index.md (100%) create mode 100644 src/content/pages/posts.md rename src/{ => content}/posts/hello_world.md (100%) create mode 100644 src/content/posts/posts.json delete mode 100644 src/posts/posts.json diff --git a/src/pages/index.md b/src/content/pages/index.md similarity index 100% rename from src/pages/index.md rename to src/content/pages/index.md diff --git a/src/content/pages/posts.md b/src/content/pages/posts.md new file mode 100644 index 0000000..3fe0ba2 --- /dev/null +++ b/src/content/pages/posts.md @@ -0,0 +1,10 @@ +--- +permalink: /posts/index.html +layout: "base" +--- + +{% for post in collections.posts %} +{{ post.fileSlug }} +{% endfor %} + +Here are all my posts! diff --git a/src/posts/hello_world.md b/src/content/posts/hello_world.md similarity index 100% rename from src/posts/hello_world.md rename to src/content/posts/hello_world.md diff --git a/src/content/posts/posts.json b/src/content/posts/posts.json new file mode 100644 index 0000000..610174a --- /dev/null +++ b/src/content/posts/posts.json @@ -0,0 +1,5 @@ +{ + "layout": "base", + "tags": "posts", + "permalink": "posts/{{ page.fileSlug }}/index.html" +} diff --git a/src/posts/posts.json b/src/posts/posts.json deleted file mode 100644 index 8a7e2bc..0000000 --- a/src/posts/posts.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "layout": "base", - "tags": "posts" -}