add a little blog. css still missing :D

This commit is contained in:
amanita 2023-10-27 18:07:41 +02:00
parent 7bdf2109a5
commit c3fe78040b
5 changed files with 52 additions and 0 deletions

18
templates/blog.html Executable file
View file

@ -0,0 +1,18 @@
{% 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 %}