website/templates/blog.html

19 lines
478 B
HTML
Raw Normal View History

{% 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 %}