chore: Progress sync for the night
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 4s

This commit is contained in:
2025-08-21 01:08:50 -04:00
parent 32bff9eaf9
commit 4195aa8d8f
14 changed files with 80 additions and 21 deletions

25
public/css/posts.css Normal file
View File

@ -0,0 +1,25 @@
.mb-2 {
margin-bottom: 2rem;
}
.posts {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
grid-column-gap: 2rem;
grid-row-gap: 2rem;
}
.posts > div {
width: 100%;
}
.post-card > img {
width: 100%;
object-fit: cover;
object-position: center;
}
@media (min-width: 992px) {
.posts {
grid-template-columns: repeat(2, 1fr);
}
}

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 11111 title: Example post 1
date: 2025-08-01
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
First post! Content change First post! Content change

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 10 title: Example post 10
date: 2025-08-10
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 3 title: Example post 3
date: 2025-08-11
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 12 title: Example post 12
date: 2025-08-12
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 2 - for Paz title: Example post 2 - for Paz
date: 2025-08-02
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 3 title: Example post 3
date: 2025-08-03
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 4 title: Example post 4
date: 2025-08-04
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 5 title: Example post 5
date: 2025-08-05
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 6 title: Example post 6
date: 2025-08-06
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 7 title: Example post 7
date: 2025-08-07
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 8 title: Example post 8
date: 2025-08-08
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -1,5 +1,7 @@
--- ---
title: Example post 9 title: Example post 9
date: 2025-08-09
thumbnail: https://dummyimage.com/1280x720/fff/aaa
--- ---
Second post! Second post!

View File

@ -7,31 +7,41 @@ pagination:
permalink: "/posts{% if pagination.pageNumber != 0 %}/{{ pagination.pageNumber }}{% endif %}/" permalink: "/posts{% if pagination.pageNumber != 0 %}/{{ pagination.pageNumber }}{% endif %}/"
layout: layout.liquid layout: layout.liquid
title: Posts title: Posts
css: posts.css
--- ---
<div class="container"> <div class="alternating-background-container alternating-primary-brown">
<h1>All Posts</h1> <div>
</div> <div class="contaier">
<div class="container"> <h1 class="title text-center">All Posts</h1>
<ul> </div>
</div>
<div class="container posts">
{% for post in pagination.items %} {% for post in pagination.items %}
<li> <div class="post-card">
<a href="{{ post.url }}">{{ post.data.title }}</a> {{ post.date | date: "%B %-d, %Y" }} {% if post.data.thumbnail %}
</li> <img src="{{ post.data.thumbnail }}" alt="{{ post.data.title }}" />
{% endif %}
<div class="post-body">
<p class="post-date">{{ post.date | date: "%B %-d, %Y" }}</p>
<h1>{{ post.data.title }}</h1>
<p>{{ post.data.context }}</p>
<!-- <p>Views {} | Likes {}</p> -->
</div>
</div>
{% endfor %} {% endfor %}
</ul> </div>
</div> </div>
<div class="container">
<div class="pagination mb-2">
{% 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 %}
<div class="pagination"> <a href="{{ pagination.href.next }}">Next →</a>
{% if pagination.href.previous %} {% endif %}
<a href="{{ pagination.href.previous }}">← Previous</a> </div>
{% endif %}
Page {{ pagination.pageNumber | plus: 1 }} of {{ pagination.pages | size }}
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">Next →</a>
{% endif %}
</div> </div>