Add canonical tags to the plain template

This commit is contained in:
2026-08-06 23:14:42 +02:00
parent eeff006347
commit 4bdf1b4f4e
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
{% block title %}{% if section %}{{ section }} — {% endif %}{{ site.name }}{% if page_num > 1 %} — Page {{ page_num }}{% endif %}{% endblock %}
{% block head %}<link rel="canonical" href="{{ site.origin }}{{ site.base_dir }}{% if section %}{{ section }}/{% endif %}{% if page_num == 1 %}{% else %}page-{{ page_num }}.html{% endif %}">{% endblock %}
{% block main %}
{% if section %}<h1>{{ section }}</h1>{% endif %}
{% for item in items %}