OLD | NEW |
1 {# | 1 {# |
2 # This file is part of acceptableads.org. | 2 # This file is part of acceptableads.org. |
3 # Copyright (C) 2016 Eyeo GmbH | 3 # Copyright (C) 2016 Eyeo GmbH |
4 # | 4 # |
5 # acceptableads.org is free software: you can redistribute it and/or modify | 5 # acceptableads.org is free software: you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation, either version 3 of the License, or | 7 # the Free Software Foundation, either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # acceptableads.org is distributed in the hope that it will be useful, | 10 # acceptableads.org is distributed in the hope that it will be useful, |
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 # GNU General Public License for more details. | 13 # GNU General Public License for more details. |
14 # | 14 # |
15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
16 # along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>. | 16 # along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>. |
17 #} | 17 #} |
18 | 18 |
19 {# HTML5 essentials #} | 19 {# HTML5 essentials #} |
20 <meta charset="utf-8"> | 20 <meta charset="utf-8"> |
21 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fi
t=no"> | 21 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fi
t=no"> |
22 <meta http-equiv="x-ua-compatible" content="ie=edge"> | 22 <meta http-equiv="x-ua-compatible" content="ie=edge"> |
23 | 23 |
24 {# HTML5 meta #} | 24 {# HTML5 meta #} |
25 <title>{{ title | translate("page-title", "Page title") }}</title> | 25 <title>{{ title | translate("page-title", "Page title") }}</title> |
26 <meta name="description" content="{{ description | translate('page-description',
'Page description') }}"> | 26 <meta name="description" content="{{ description | translate('page-description',
'Page description') }}"> |
| 27 <link rel="canonical" href="{{ get_canonical_url(page) }}" /> |
27 | 28 |
28 {# http://ogp.me/ #} | 29 {# http://ogp.me/ #} |
29 <meta property="og:image" content="{{ (og_image if og_image else meta.og_image)
| translate('og-image', 'Open graph image')}}"> | 30 <meta property="og:image" content="{{ (og_image if og_image else meta.og_image)
| translate('og-image', 'Open graph image')}}"> |
| 31 <meta property="og:title" content="{{ title | translate("page-title") }}"> |
| 32 <meta property="og:description" content="{{ description | translate("page-descri
ption") }}"> |
| 33 <meta property="og:locale" content="{{ locale | to_og_locale }}"> |
| 34 {% for alternate_locale in locales %} |
| 35 {% if alternate_locale != locale %} |
| 36 <meta property="og:locale:alternate" content="{{ alternate_locale | to_og_lo
cale }}"> |
| 37 {% endif %} |
| 38 {% endfor %} |
| 39 <meta property="og:url" content="{{ get_canonical_url(page) }}"> |
30 | 40 |
31 {# https://dev.twitter.com/cards/markup #} | 41 {# https://dev.twitter.com/cards/markup #} |
32 <meta name="twitter:card" content="{{ meta.twitter_card }}"> | 42 <meta name="twitter:card" content="{{ meta.twitter_card }}"> |
33 <meta name="twitter:site" content="{{ meta.twitter_site }}"> | 43 <meta name="twitter:site" content="{{ meta.twitter_site }}"> |
34 <meta name="twitter:creator" content="{{ meta.twitter_creator }}"> | 44 <meta name="twitter:creator" content="{{ meta.twitter_creator }}"> |
35 <meta name="twitter:image" content="{{ (twitter_image if twitter_image else meta
.twitter_image) | translate('twitter-image', 'Twitter image') }}"> | 45 <meta name="twitter:image" content="{{ (twitter_image if twitter_image else meta
.twitter_image) | translate('twitter-image', 'Twitter image') }}"> |
36 <meta name="twitter:image:alt" content="{{ (twitter_image_alt if twitter_image_a
lt else meta.twitter_image_alt) | translate('twitter-image-alt', 'Twitter image
alternate text') }}"> | 46 <meta name="twitter:image:alt" content="{{ (twitter_image_alt if twitter_image_a
lt else meta.twitter_image_alt) | translate('twitter-image-alt', 'Twitter image
alternate text') }}"> |
OLD | NEW |