File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 15
15
16
16
{% if pagename == 'index' %}
17
17
< link rel ="canonical " href ="https://docs.python-guide.org/ "/>
18
+ < meta property ="og:url " content ="https://docs.python-guide.org/ ">
18
19
{% elif pagename == '404' %}
19
20
{# No canonical on our 404 template. #}
20
21
{% else %}
21
22
< link rel ="canonical " href ="https://docs.python-guide.org/{{ pagename }}/ "/>
23
+ < meta property ="og:url " content ="https://docs.python-guide.org/{{ pagename }} ">
22
24
{% endif %}
23
25
24
26
< link rel ="icon " type ="image/png " href ="https://media.readthedocs.org/images/favicon.png ">
25
27
26
28
< meta name ="google-site-verification " content ="013PxE2_8KX9jdUSC5gr8QsfdxTXr1mFgmD9zplp5II " />
27
29
30
+ < meta name ="twitter:card " content ="summary ">
31
+ < meta property ="twitter:image " content ="https://docs.python-guide.org/_static/python-guide-logo.png ">
32
+ < meta property ="og:image " content ="https://docs.python-guide.org/_static/python-guide-logo.png ">
33
+ < meta property ="og:title " content ="{{ title }}{{ titlesuffix }} ">
34
+ < meta property ="og:type " content ="article ">
35
+ {%- if metatags is defined %}
36
+ {# FIXME: For some reason the `meta` dict is always empty. Extract the desc from the `metatags` text. #}
37
+ < meta property ="og:description " content ="{{ metatags[15:-24] }} ">
38
+ {%- endif %}
39
+
28
40
< script > window . rp_prop_id = '29182759436' ; </ script >
29
41
< script src ="https://srv.realpython.net/tag.js " async > </ script >
30
42
You can’t perform that action at this time.
0 commit comments