Skip to content

Commit 345f540

Browse files
committed
adding opengraph meta tags and social card
1 parent d953943 commit 345f540

File tree

6 files changed

+696
-32
lines changed

6 files changed

+696
-32
lines changed

_extra/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
3+
Sitemap: https://python.pe/sitemap.xml
4+
Sitemap: https://www.python.pe/sitemap.xml

_static/logo/logo.png

4.29 KB
Loading

conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
"sphinx_tabs.tabs",
211211
"sphinx_togglebutton",
212212
"sphinx_sitemap",
213+
"sphinxext.opengraph",
213214
"embed",
214215
"gravatar",
215216
]
@@ -414,3 +415,15 @@
414415

415416
# sphinx-sitemap URL scheme
416417
sitemap_url_scheme = "{link}"
418+
419+
# A list of paths that contain extra files not directly related to the
420+
# documentation.
421+
html_extra_path = ["_extra"]
422+
423+
# OpenGraph options
424+
ogp_site_url = "https:/www.python.pe"
425+
ogp_enable_meta_description = True
426+
ogp_social_cards = {
427+
"line_color": "#4078c0",
428+
"image": "_static/logo/logo.png",
429+
}

0 commit comments

Comments
 (0)