Compare commits

..

2 Commits

Author SHA1 Message Date
42fb4ae576 chore: Added temp example posts 2025-08-20 21:56:05 -04:00
a2576e1cfd chore: Re-organized posts 2025-08-20 21:55:44 -04:00
14 changed files with 80 additions and 4 deletions

5
src/post/post-10.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 10
---
Second post!

5
src/post/post-11.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 3
---
Second post!

5
src/post/post-12.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 12
---
Second post!

5
src/post/post-3.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 3
---
Second post!

5
src/post/post-4.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 4
---
Second post!

5
src/post/post-5.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 5
---
Second post!

5
src/post/post-6.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 6
---
Second post!

5
src/post/post-7.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 7
---
Second post!

5
src/post/post-8.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 8
---
Second post!

5
src/post/post-9.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Example post 9
---
Second post!

View File

@ -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
---
<div class="container">
{% for post in collections.post %}
<h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2>
<p>{{ post.content }}</p>
{% endfor %}
<h1>All Posts</h1>
</div>
<div class="container">
<ul>
{% for post in pagination.items %}
<li>
<a href="{{ post.url }}">{{ post.data.title }}</a> {{ post.date | date: "%B %-d, %Y" }}
</li>
{% endfor %}
</ul>
</div>
<div class="pagination">
{% if pagination.href.previous %}
<a href="{{ pagination.href.previous }}">← Previous</a>
{% endif %}
Page {{ pagination.pageNumber | plus: 1 }} of {{ pagination.pages | size }}
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">Next →</a>
{% endif %}
</div>