https://github.com/python/cpython/commit/53555f219900edc38cac381066ab2f0c26389ccf commit: 53555f219900edc38cac381066ab2f0c26389ccf branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com> date: 2025-04-07T21:05:15Z summary:
[3.13] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (#132239) gh-130521: Add Open Graph meta tags to template pages (GH-130523) (cherry picked from commit f5639d87f59043d3075dbd3d9075f30e872dd91a) Co-authored-by: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+aa-tur...@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hug...@users.noreply.github.com> files: M Doc/tools/templates/download.html M Doc/tools/templates/indexcontent.html M Doc/tools/templates/search.html 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() }} + <meta property="og:title" content="Download — Python {{ dl_version }} documentation"> + <meta property="og:type" content="website"> + <meta property="og:url" content="https://docs.python.org/3/download.html"> + <meta property="og:site_name" content="Python documentation"> + <meta property="og:description" content="Download Python documentation."> + <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png"> + <meta name="description" content="Download Python documentation."> + <meta property="og:image:width" content="200"> + <meta property="og:image:height" content="200"> + <meta name="theme-color" content="#3776ab"> +{%- endblock -%} + {% block body %} <h1>{% trans %}Download Python {{ dl_version }} Documentation{% endtrans %}</h1> 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 -%} <title>{{ shorttitle }}</title> {%- endblock -%} +{%- block extrahead -%} + {{ super() }} + <meta property="og:title" content="Python {{ version }} documentation"> + <meta property="og:type" content="website"> + <meta property="og:url" content="https://docs.python.org/3/"> + <meta property="og:site_name" content="Python documentation"> + <meta property="og:description" content="The official Python documentation."> + <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png"> + <meta name="description" content="The official Python documentation."> + <meta property="og:image:width" content="200"> + <meta property="og:image:height" content="200"> + <meta name="theme-color" content="#3776ab"> +{%- endblock -%} {% block body %} <h1>{{ docstitle|e }}</h1> <p> 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() }} <meta name="robots" content="noindex"> <script type="text/javascript" src="{{ pathto('_static/glossary_search.js', resource=True) }}"></script> + <meta property="og:title" content="Search — Python {{ version }} documentation"> + <meta property="og:type" content="website"> + <meta property="og:url" content="https://docs.python.org/3/search.html"> + <meta property="og:site_name" content="Python documentation"> + <meta property="og:description" content="Search the Python documentation."> + <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png"> + <meta name="description" content="Search the Python documentation."> + <meta property="og:image:width" content="200"> + <meta property="og:image:height" content="200"> + <meta name="theme-color" content="#3776ab"> {% endblock %} {% block searchresults %} <div id="search-results"> _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com