added tags

This commit is contained in:
Bastian Venthur
2021-02-09 21:56:44 +01:00
parent 5c06af6d0e
commit a4d7360d8c
3 changed files with 65 additions and 0 deletions

15
blag/templates/tag.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block title %}Tag {{ tag }}{% endblock %}
{% block content %}
{% for entry in archive %}
{% if entry.title %}
<h1><a href="/{{entry.dst}}">{{entry.title}}</a></h1>
{% endif %}
<p>Written on {{ entry.date.date() }}.</p>
{% endfor %}
{% endblock %}

14
blag/templates/tags.html Normal file
View File

@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}Tags{% endblock %}
{% block content %}
<h2>Tags</h2>
<ul>
{% for tag, size in tags %}
<li>
<a href="{{ tag }}.html">{{ tag }} ({{ size }} articles)</a>
</li>
{% endfor %}
</ul>
{% endblock %}