Skip to content

Commit

Permalink
Fix version display in the HTML title (#249)
Browse files Browse the repository at this point in the history
Forgot to remove the tags when including the version number in the HTML
title. Use the `striptags` filter to fix this in the base template.
  • Loading branch information
leouieda authored Oct 18, 2021
1 parent dacae0d commit a40c5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
{% if title == '' or title == 'Home' %}
<title>{{ docstitle|striptags|e }}</title>
{% else %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
<title>{{ title|striptags|e }} | {{ docstitle|striptags|e }}</title>
{% endif %}
{% endblock %}

0 comments on commit a40c5bd

Please sign in to comment.