Merge branch 'master' into better_default_theme

This commit is contained in:
Bastian Venthur
2023-06-16 09:34:08 +02:00
committed by GitHub
8 changed files with 105 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}{{ site.title }}{% endblock %}
{% block title %}Archive{% endblock %}
{% block content %}

23
blag/templates/index.html Normal file
View File

@@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block title %}{{ site.title }}{% endblock %}
{% block content %}
{% for entry in archive[:10] %}
{% if entry.title %}
<h1><a href="{{entry.dst}}">{{entry.title}}</a></h1>
{% if entry.description %}
<p>— {{ entry.description }}</p>
{% endif %}
{% endif %}
<p>Written on {{ entry.date.date() }}.</p>
{% endfor %}
<p><a href="/archive.html">all articles...</a></p>
{% endblock %}