2024-04-15 17:39:56 +00:00
|
|
|
---
|
|
|
|
pagination:
|
|
|
|
data: collections.posts
|
|
|
|
size: 10
|
|
|
|
alias: postList
|
|
|
|
reverse: true
|
|
|
|
title: Blog Archive
|
|
|
|
layout: main/content
|
|
|
|
tags: blog pages
|
2024-04-16 09:09:38 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<ul class="blog__postlist">
|
|
|
|
{% for post in postList %}
|
2024-04-17 12:20:20 +00:00
|
|
|
<li class="blog__postlist--item">
|
|
|
|
<h2 class="blog__postlist--title">
|
2024-04-16 09:09:38 +00:00
|
|
|
<a href="{{ post.url }}">
|
|
|
|
{% if post.data.title %}{{ post.data.articleTitle }}
|
|
|
|
{% else %}
|
|
|
|
<code>{{ post.url }}</code>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<time>{{ post.date | niceDate }}</time>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
2024-04-17 12:20:20 +00:00
|
|
|
<style>
|
|
|
|
.blog__postlist {
|
|
|
|
display: grid;
|
|
|
|
gap: 1em;
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.blog__postlist--title {
|
|
|
|
font-size: clamp(1.55rem, 1rem + 3vw, 1.3rem);
|
|
|
|
line-height: 1.3;
|
|
|
|
margin-bottom: 0.2em;
|
|
|
|
}
|
|
|
|
</style>
|