|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | 7 | <meta name="google-site-verification" content="RAskX0UNOnUGX4OiXn7jalIRZj-SwZej5FRKUlBHEnM" /> |
8 | 8 | <title>Python.ru{% block title %} {% endblock %}</title> |
| 9 | + {% if request.path == "/" %} |
| 10 | + <meta property="og:url" content="{{ request.get_host }}"> |
| 11 | + <meta property="og:image" content="{{ request.get_host }}{% static "images/python_ru_social_thumb.png" %}" /> |
| 12 | + <meta property="og:title" content="python.ru" /> |
| 13 | + <meta property="og:description" content="python.ru русскоязычное сообщество языка python" /> |
| 14 | + <meta property="og:type" content="website" /> |
| 15 | + <meta property="og:site_name" content="python.ru"> |
| 16 | + {% else %} |
9 | 17 | {% block head %} |
10 | 18 |
|
11 | 19 | {% endblock %} |
| 20 | + {% endif %} |
| 21 | + |
| 22 | + |
12 | 23 | <link media="all" rel="stylesheet" href="{% static "css/all.css" %}" /> |
13 | 24 | <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'> |
14 | 25 | <link rel="apple-touch-icon" sizes="180x180" href="{% static "favicons/apple-touch-icon.png" %}"> |
15 | 26 | <link rel="icon" type="image/png" href="{% static "favicons/favicon-32x32.png" %}" sizes="32x32"> |
16 | 27 | <link rel="icon" type="image/png" href="{% static "favicons/favicon-16x16.png" %}" sizes="16x16"> |
17 | 28 | <link rel="manifest" href="{% static "favicons/manifest.json" %}"> |
18 | 29 | <link rel="mask-icon" href="{% static "favicons/safari-pinned-tab.svg" %}" color="#5bbad5"> |
| 30 | + <link rel="stylesheet" |
| 31 | + href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/default.min.css"> |
| 32 | + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js"></script> |
| 33 | + <script>hljs.initHighlightingOnLoad();</script> |
19 | 34 | <meta name="theme-color" content="#ffffff"> |
20 | 35 |
|
21 | | - <meta property="og:url" content=""> |
22 | | - <meta property="og:image" content="}" /> |
23 | | - <meta property="og:title" content="python.ru" /> |
24 | | - <meta property="og:description" content="python.ru русскоязычное сообщество языка python" /> |
25 | | - <meta property="og:type" content="website" /> |
26 | | - <meta property="og:site_name" content="Хабр"> |
| 36 | + |
27 | 37 |
|
28 | 38 | </head> |
29 | 39 | <body> |
|
0 commit comments