Skip to content

Commit d186e52

Browse files
committed
Include og:image:width and height to ensure shares of new URLs include an image
1 parent b919f6c commit d186e52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
# sphinxext-opengraph config
109109
ogp_site_url = "https://devguide.python.org/"
110110
ogp_image = "https://devguide.python.org/_static/og-image.png"
111+
ogp_custom_meta_tags = [
112+
'<meta property="og:image:width" content="1200">',
113+
'<meta property="og:image:height" content="630">',
114+
]
111115

112116
# Strip the dollar prompt when copying code
113117
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells

0 commit comments

Comments
 (0)