page template: strip tags from site title

A website's `<title>` 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.
This commit is contained in:
Trolli Schmittlauch 2022-04-23 09:57:50 +02:00
parent af0cfa52e3
commit 8484e93075

View file

@ -11,7 +11,7 @@
{% endif %}
{% endblock %}
{% block title %} &ndash; {{ page.title }}{% endblock %}
{% block title %} &ndash; {{ page.title|striptags|escape }}{% endblock %}
{% block content %}
<article class="single">