2023-04-02 16:42:13 +02:00
|
|
|
{% macro list_posts(pages) %}
|
2023-04-09 12:27:51 +02:00
|
|
|
<ul class="space-y-6">
|
2023-04-02 16:42:13 +02:00
|
|
|
{%- for page in pages %}
|
|
|
|
<section class="list-item">
|
|
|
|
<h1 class="title text-peach">
|
2023-10-24 10:13:42 +02:00
|
|
|
<a href={{ page.permalink | safe }}>{{page.title}}</a>
|
2023-04-02 16:42:13 +02:00
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="meta">
|
|
|
|
{%- if page.date %}
|
|
|
|
<time>{{ page.date | date(format="%Y-%m-%d") }}</time>
|
|
|
|
{% endif -%}
|
|
|
|
{% if page.draft %}
|
|
|
|
<span class="draft-label">DRAFT</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<div class="blog-summary ">
|
|
|
|
{% if page.description %}
|
2023-04-03 02:49:17 +02:00
|
|
|
<p>{{ page.description }}</p>
|
2023-04-02 16:42:13 +02:00
|
|
|
{% elif page.summary %}
|
|
|
|
{{ page.summary | safe }}…
|
|
|
|
{% else %}
|
|
|
|
{% set hide_read_more = true %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if not hide_read_more %}
|
2023-10-24 10:13:42 +02:00
|
|
|
<a class="readmore text-peach" href={{ page.permalink | safe }}>Read more ⟶</a>
|
2023-04-02 16:42:13 +02:00
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endfor -%}
|
|
|
|
</ul>
|
|
|
|
{% endmacro list_posts %}
|
2023-04-09 12:27:51 +02:00
|
|
|
|
|
|
|
{% macro styles() %}
|
|
|
|
<link rel="stylesheet" href="{{ get_url(path="styles/styles.css") | safe }}" />
|
|
|
|
{% endmacro styles %}
|