diff --git a/src/posts/post-1.md b/src/post/post-1.md similarity index 100% rename from src/posts/post-1.md rename to src/post/post-1.md diff --git a/src/posts/post-2.md b/src/post/post-2.md similarity index 100% rename from src/posts/post-2.md rename to src/post/post-2.md diff --git a/src/posts/posts.json b/src/post/post.json similarity index 100% rename from src/posts/posts.json rename to src/post/post.json diff --git a/src/posts.liquid b/src/posts.liquid index b0642dd..70da2d1 100644 --- a/src/posts.liquid +++ b/src/posts.liquid @@ -1,11 +1,37 @@ --- +pagination: + data: collections.posts + size: 10 + alias: post + reverse: true +permalink: "/posts{% if pagination.pageNumber != 0 %}/{{ pagination.pageNumber }}{% endif %}/" layout: layout.liquid title: Posts ---
- {% for post in collections.post %} -

{{ post.data.title }}

-

{{ post.content }}

- {% endfor %} +

All Posts

+
+
+ +
+ + + + \ No newline at end of file