1
0
Fork 0
forked from reudnetz/website
website/templates/blog.html
2023-10-27 18:08:44 +02:00

19 lines
478 B
HTML
Executable file

{% extends "page.html" %}
{% block content %}
{{ page.content | safe }}
{% set posts = get_section(path="blogposts/_index.md") %}
{% for post in posts.pages %}
<h2><a href="{{ get_url(path=post.path) }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p class="date">{{ post.date }}</p>
<div class="post-content">
{% if post.summary %}
{{ post.summary | safe }}
{% else %}
{{ post.content | safe }}
{% endif %}
</div>
{% endfor %}
{% endblock content %}