From a2576e1cfdf91aeb10ee65fd53cb20ecb683d37e Mon Sep 17 00:00:00 2001 From: Cyper Date: Wed, 20 Aug 2025 21:55:44 -0400 Subject: [PATCH] chore: Re-organized posts --- src/{posts => post}/post-1.md | 0 src/{posts => post}/post-2.md | 0 src/{posts/posts.json => post/post.json} | 0 src/posts.liquid | 34 +++++++++++++++++++++--- 4 files changed, 30 insertions(+), 4 deletions(-) rename src/{posts => post}/post-1.md (100%) rename src/{posts => post}/post-2.md (100%) rename src/{posts/posts.json => post/post.json} (100%) 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