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.
15 lines
347 B
15 lines
347 B
{% extends('layout.njk') %}
|
|
|
|
{% block main %}
|
|
|
|
{% set posts = pageQuery.find({ orderBy: [ '-date_published' ], limit: 2, filter: { view: { _eq: 'post.njk' } } }) %}
|
|
|
|
{% for post in posts %}
|
|
<a class="post" href="{{ post.path }}">
|
|
<h2 class="post__title">
|
|
{{ post.title }}
|
|
</h2>
|
|
</a>
|
|
{% endfor %}
|
|
|
|
{% endblock %} |