From 113ca1e4cb00ca754089dbea96a58400794de74c Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Sat, 23 Aug 2025 15:50:19 +0200 Subject: [PATCH 1/2] attempt to fix the title --- docs/_templates/page.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/_templates/page.html diff --git a/docs/_templates/page.html b/docs/_templates/page.html new file mode 100644 index 0000000..0e31b4a --- /dev/null +++ b/docs/_templates/page.html @@ -0,0 +1,9 @@ +{% extends "!page.html" %} + +{% block title %} + {% if pagename == "index" %} + {{ title }} + {% else %} + {{ title }} — Dokumentace české Python komunity + {% endif %} +{% endblock %} From b31e7e1a0cf5f84a03faa25350d67ad6d711ca1c Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Sat, 23 Aug 2025 15:58:07 +0200 Subject: [PATCH 2/2] fix https://github.com/pyvec/docs.pyvec.org/issues/101 --- docs/_templates/page.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/_templates/page.html b/docs/_templates/page.html index 0e31b4a..3a2c0ea 100644 --- a/docs/_templates/page.html +++ b/docs/_templates/page.html @@ -1,9 +1,11 @@ {% extends "!page.html" %} -{% block title %} - {% if pagename == "index" %} - {{ title }} - {% else %} - {{ title }} — Dokumentace české Python komunity - {% endif %} -{% endblock %} +{%- block htmltitle -%} + + {%- if pagename == "index" -%} + {{ project|e }} + {%- else -%} + {{ title|striptags|e }} — Dokumentace české Python komunity + {%- endif -%} + +{%- endblock -%}