|
15 | 15 |
|
16 | 16 | {% if pagename == 'index' %}
|
17 | 17 | <linkrel="canonical"href="https://docs.python-guide.org/"/>
|
| 18 | +<metaproperty="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 | <linkrel="canonical"href="https://docs.python-guide.org/{{ pagename }}/"/>
|
| 23 | +<metaproperty="og:url"content="https://docs.python-guide.org/{{ pagename }}"> |
22 | 24 | {% endif %}
|
23 | 25 |
|
24 | 26 | <linkrel="icon"type="image/png"href="https://media.readthedocs.org/images/favicon.png">
|
25 | 27 |
|
26 | 28 | <metaname="google-site-verification"content="013PxE2_8KX9jdUSC5gr8QsfdxTXr1mFgmD9zplp5II"/>
|
27 | 29 |
|
| 30 | +<metaname="twitter:card"content="summary"> |
| 31 | +<metaproperty="twitter:image"content="https://docs.python-guide.org/_static/python-guide-logo.png"> |
| 32 | +<metaproperty="og:image"content="https://docs.python-guide.org/_static/python-guide-logo.png"> |
| 33 | +<metaproperty="og:title"content="{{ title }}{{ titlesuffix }}"> |
| 34 | +<metaproperty="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 | +<metaproperty="og:description"content="{{ metatags[15:-24] }}"> |
| 38 | + {%- endif %} |
| 39 | + |
28 | 40 | <script>window.rp_prop_id='29182759436';</script>
|
29 | 41 | <scriptsrc="https://srv.realpython.net/tag.js"async></script>
|
30 | 42 |
|
|