Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: templates/default.tmpl

Issue 29511696: Issue 5447 - Add missing essential meta data to adblockplus.org (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Updated locales before re-landing after blog fix Created Sept. 13, 2017, 12:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# 1 {#
2 # This file is part of the Adblock Plus website, 2 # This file is part of the Adblock Plus website,
3 # Copyright (C) 2006-present eyeo GmbH 3 # Copyright (C) 2006-present eyeo GmbH
4 # 4 #
5 # Adblock Plus is free software: you can redistribute it and/or modify 5 # Adblock Plus is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 3 as 6 # it under the terms of the GNU General Public License version 3 as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
8 # 8 #
9 # Adblock Plus is distributed in the hope that it will be useful, 9 # Adblock Plus is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. 12 # GNU General Public License for more details.
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 #} 16 #}
17 17
18 <!DOCTYPE html> 18 <!DOCTYPE html>
19 <html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "l tr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage"> 19 <html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "l tr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage">
20 <head> 20 <head>
21 <meta charset="utf-8"> 21 <meta charset="utf-8">
22 <meta name="viewport" content="width=device-width, initial-scale=1"> 22 <meta name="viewport" content="width=device-width, initial-scale=1">
23 23
24 <title>{{title|translate("title", "meta")}}</title> 24 <title>{{title|translate("title", "meta")}}</title>
25 {% if description %} 25 {% if description %}
26 <meta name="description" content="{{description|translate("description", "me ta")}}"> 26 <meta name="description" content="{{description|translate("description", "me ta")}}">
27 {% endif %} 27 {% endif %}
28 <link rel="canonical" href="{{ get_canonical_url(page | ignore_browsers) }}" >
28 29
29 {# facebook / Open Graph http://ogp.me/ #} 30 {# facebook / Open Graph http://ogp.me/ #}
30 <meta property="og:image" content="{{og_image if og_image else '/img/adblock plus_promo.png'}}" /> 31 <meta property="og:image" content="{{og_image if og_image else '/img/adblock plus_promo.png'}}" />
32 <meta property="og:title" content="{{ title | translate("title") }}">
33 {% if description %}
34 <meta property="og:description" content="{{ description | translate("descr iption") }}">
35 {% endif %}
36 <meta property="og:locale" content="{{ locale | to_og_locale }}">
37 {% for alternate_locale in locales %}
38 {% if alternate_locale != locale %}
39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}">
40 {% endif %}
41 {% endfor %}
42 <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers ) }}">
31 43
32 {# twitter https://dev.twitter.com/cards/markup #} 44 {# twitter https://dev.twitter.com/cards/markup #}
33 <meta name="twitter:site" content="@AdblockPlus" /> 45 <meta name="twitter:site" content="@AdblockPlus" />
34 <meta name="twitter:creator" content="@AdblockPlus" /> 46 <meta name="twitter:creator" content="@AdblockPlus" />
35 47
36 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 48 <link rel="stylesheet" href="/css/main.css" class="cssfx">
37 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000p x)" class="cssfx"> 49 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000p x)" class="cssfx">
38 <link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px )"> 50 <link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px )">
39
40 <link rel="canonical" href="https://adblockplus.org/{{page}}">
41 <link rel="apple-touch-icon" href="/img/favicon-large.png" /> 51 <link rel="apple-touch-icon" href="/img/favicon-large.png" />
42 52
43 <!--[if IE 8]> 53 <!--[if IE 8]>
44 <script src="/js/vendor/ie8.js"></script> 54 <script src="/js/vendor/ie8.js"></script>
45 <![endif]--> 55 <![endif]-->
46 56
47 {% block head %} 57 {% block head %}
48 {{head|safe}} 58 {{head|safe}}
49 {% endblock %} 59 {% endblock %}
50 60
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a> 210 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a>
201 </li> 211 </li>
202 </ul> 212 </ul>
203 </section> 213 </section>
204 </div> 214 </div>
205 </footer> 215 </footer>
206 216
207 <script src="/js/main.js"></script> 217 <script src="/js/main.js"></script>
208 </body> 218 </body>
209 </html> 219 </html>
OLDNEW
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld