From 68fd3fb83ee3f685c5778d503a032a601bd93e94 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 7 Apr 2025 21:58:50 +0100 Subject: [PATCH] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (cherry picked from commit f5639d87f59043d3075dbd3d9075f30e872dd91a) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- Doc/tools/templates/download.html | 14 ++++++++++++++ Doc/tools/templates/indexcontent.html | 13 +++++++++++++ Doc/tools/templates/search.html | 10 ++++++++++ 3 files changed, 37 insertions(+) diff --git a/Doc/tools/templates/download.html b/Doc/tools/templates/download.html index 45ec436fee72d7..4645f7d394e29e 100644 --- a/Doc/tools/templates/download.html +++ b/Doc/tools/templates/download.html @@ -12,6 +12,20 @@ {% set dl_version = release %} {% endif %} +{%- block extrahead -%} + {{ super() }} + + + + + + + + + + +{%- endblock -%} + {% block body %}

{% trans %}Download Python {{ dl_version }} Documentation{% endtrans %}

diff --git a/Doc/tools/templates/indexcontent.html b/Doc/tools/templates/indexcontent.html index 2686f48dad2a95..f8367f6e3e1029 100644 --- a/Doc/tools/templates/indexcontent.html +++ b/Doc/tools/templates/indexcontent.html @@ -2,6 +2,19 @@ {%- block htmltitle -%} Codestin Search App {%- endblock -%} +{%- block extrahead -%} + {{ super() }} + + + + + + + + + + +{%- endblock -%} {% block body %}

{{ docstitle|e }}

diff --git a/Doc/tools/templates/search.html b/Doc/tools/templates/search.html index 6ddac5f828bab1..8ff7622389bc66 100644 --- a/Doc/tools/templates/search.html +++ b/Doc/tools/templates/search.html @@ -3,6 +3,16 @@ {{ super() }} + + + + + + + + + + {% endblock %} {% block searchresults %}