add tag browser generation

This commit is contained in:
2023-09-17 20:18:24 +01:00
committed by Akbar Rahman
parent 29529cfd6a
commit 5bb40a57d1
6 changed files with 75 additions and 34 deletions

View File

@@ -40,7 +40,7 @@
<p class="smallText metadata"> tags: [
{% for tag in tags %}
<a href="/.tags/{{ tag }}.html">{{ tag }}</a>{% if loop.nextitem %},{% endif %}
<a href="/tags/{{ tag }}">{{ tag }}</a>{% if loop.nextitem %},{% endif %}
{% endfor %}
]</p>
<p class="smallText metadata">

View File

@@ -3,13 +3,12 @@
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" />
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
<title>{{ title }}</title>
<title>{{ post['content'] }}</title>
</head>
<body>
<div id="content">
<h1> {{ h1title }}</>
{{ post['content']|safe }}
<p>
These are my personal notes. Correctness is not guaranteed.
Browse <a href="/notes">here</a> or by tag <a href="/tags">here</a>.
</p>