From 8484e930758ad822a038405294f21569a0adc080 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sat, 23 Apr 2022 09:57:50 +0200 Subject: [PATCH] page template: strip tags from site title A website's `` cannot contain further html formatting and layouting elements. Thus, as already done in the article template, additional html tags need to be stripped from the title to not appear in verbatim in a browser's title page. This is relevant when using TYPOGRIFY integration, as that might also augment a page title with further html elements automatically. --- templates/page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/page.html b/templates/page.html index 64a7ead..cf276f7 100644 --- a/templates/page.html +++ b/templates/page.html @@ -11,7 +11,7 @@ {% endif %} {% endblock %} -{% block title %} – {{ page.title }}{% endblock %} +{% block title %} – {{ page.title|striptags|escape }}{% endblock %} {% block content %} <article class="single">