Skip to content

Commit aa17904

Browse files
authored
Infra: Add OG metadata to improve previews of shared links (python#3707)
1 parent 7f28c97 commit aa17904

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Loading

pep_sphinx_extensions/pep_theme/templates/page.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@
1313
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', resource=True) }}" type="text/css" media="(prefers-color-scheme: light)" id="pyg-light">
1414
<link rel="stylesheet" href="{{ pathto('_static/pygments_dark.css', resource=True) }}" type="text/css" media="(prefers-color-scheme: dark)" id="pyg-dark">
1515
<link rel="alternate" type="application/rss+xml" title="Latest PEPs" href="https://peps.python.org/peps.rss">
16+
<meta property="og:title" content='{{ title + " | peps.python.org"|safe }}'>
17+
<meta property="og:type" content="website">
18+
<meta property="og:url" content="https://peps.python.org/{{ pagename }}/">
19+
<meta property="og:site_name" content="Python Enhancement Proposals (PEPs)">
20+
<meta property="og:image" content="https://peps.python.org/_static/og-image.png">
21+
<meta property="og:image:alt" content="Python PEPs">
22+
<meta property="og:image:width" content="200">
23+
<meta property="og:image:height" content="200">
1624
<meta name="description" content="Python Enhancement Proposals (PEPs)">
25+
<meta name="theme-color" content="#3776ab">
1726
</head>
1827
<body>
1928
{% include "partials/icons.html" %}

0 commit comments

Comments
 (0)