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" -}