You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1012 B

{% extends('layout.njk') %}
{% set posts = pageQuery.find({ parent: '/', deep: 0, orderBy: [ '-date_published' ], limit: 50, filter: { view: { _eq: 'post.njk' } } }) %}
{% block main %}
<div class="grid justify-center">
<div class="inner">
<div class="m-top-7">
{% for post in posts %}
<article class="post m-bottom-6">
<header class="post__header m-bottom-3">
<h2 class="h4 m-bottom-3 highlight">
<a href="{{ post.path }}">
{{ post.title }}
</a>
</h2>
<span class="post__time">
<time time="{{ dayjs(post.date_published) }}">
{{ dayjs(post.date_published).format('DD-MM-YYYY, H:m') }}
</time>
</span>
{% if post.tags %}
/ Tags: {{ post.tags | join('/') }}
{% endif %}
</header>
{% if post.excerpt %}
<div class="post__excerpt">
<div class="content">
{{ post.excerpt }}
</div>
</div>
{% endif %}
</article>
{% endfor %}
</div>
</div>
</div>
{% endblock %}