FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-130521: Add Open Graph meta tags to template pages (GH-130523) by miss-islington · Pull Request #132238 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .html  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 14 additions & 0 deletions Doc/tools/templates/download.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
13 changes: 13 additions & 0 deletions Doc/tools/templates/indexcontent.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 10 additions & 0 deletions Doc/tools/templates/search.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

Back | FazBrowse Home | New Git URL