chore: Progress sync for the night
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 4s
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 4s
This commit is contained in:
25
public/css/posts.css
Normal file
25
public/css/posts.css
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -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!
|
||||||
@ -7,24 +7,33 @@ 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 class="contaier">
|
||||||
|
<h1 class="title text-center">All Posts</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
</div>
|
||||||
<ul>
|
<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 }}" />
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</ul>
|
<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>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
<div class="pagination">
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="pagination mb-2">
|
||||||
{% if pagination.href.previous %}
|
{% if pagination.href.previous %}
|
||||||
<a href="{{ pagination.href.previous }}">← Previous</a>
|
<a href="{{ pagination.href.previous }}">← Previous</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -35,3 +44,4 @@ title: Posts
|
|||||||
<a href="{{ pagination.href.next }}">Next →</a>
|
<a href="{{ pagination.href.next }}">Next →</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user