Skip to content

Commit 1a9a409

Browse files
committed
Move meta theme-color to layout.html
1 parent 6a22963 commit 1a9a409

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Doc/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,13 +630,10 @@
630630
'image': '_static/og-image.png',
631631
'line_color': '#3776ab',
632632
}
633-
ogp_custom_meta_tags = [
634-
'<meta name="theme-color" content="#3776ab">',
635-
]
636633
if 'create-social-cards' not in tags: # noqa: F821
637634
# Define a static preview image when not creating social cards
638635
ogp_image = '_static/og-image.png'
639-
ogp_custom_meta_tags += [
636+
ogp_custom_meta_tags = [
640637
'<meta property="og:image:width" content="200">',
641638
'<meta property="og:image:height" content="200">',
642639
]

Doc/tools/templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<script defer data-domain="docs.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
3232
{% endif %}
3333
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
34+
<meta name="theme-color" content="#3776ab">
3435
{% if pagename == 'whatsnew/changelog' and not embedded %}
3536
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
3637
{% endif %}

0 commit comments

Comments
 (0)