Skip to content

Commit 30a3316

Browse files
committed
Fix OG image
1 parent 1d7d651 commit 30a3316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_sphinx_theme2/templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<link rel="preconnect" href="https://fonts.googleapis.com">
5252
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5353
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap" rel="stylesheet">
54-
<meta property="og:image" content="{{ pathto('_static/img/pytorch_seo.png', 1) }}" />
54+
<meta property="og:image" content="https://docs.pytorch.org/docs/stable/_static/img/pytorch_seo.png" />
5555
<link rel="stylesheet" href="{{ pathto('_static/webfonts/all.min.css', 1) }}" crossorigin="anonymous">
5656
<meta http-equiv="Content-Security-Policy"
5757
content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval' blob:;">
@@ -246,7 +246,7 @@
246246
"name": "PyTorch Contributors",
247247
"url": "https://pytorch.org"
248248
},
249-
"image": "{{ url_root }}{{ pathto('_static/img/pytorch_seo.png', 1) }}",
249+
"image": "https://pytorch.org/docs/stable/_static/img/pytorch_seo.png",
250250
"mainEntityOfPage": {
251251
"@type": "WebPage",
252252
"@id": "{{ canonical_url|default((url_root if url_root is defined else '/') + pagename + '.html', true) }}"

0 commit comments

Comments
 (0)