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

Side by Side Diff: templates/default.tmpl

Issue 29588973: Issue 5683 - Made og:url locale specific (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created Oct. 25, 2017, 7:59 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 | « no previous file | 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
(...skipping 21 matching lines...) Expand all
32 <meta property="og:title" content="{{ title | translate("title") }}"> 32 <meta property="og:title" content="{{ title | translate("title") }}">
33 {% if description %} 33 {% if description %}
34 <meta property="og:description" content="{{ description | translate("descr iption") }}"> 34 <meta property="og:description" content="{{ description | translate("descr iption") }}">
35 {% endif %} 35 {% endif %}
36 <meta property="og:locale" content="{{ locale | to_og_locale }}"> 36 <meta property="og:locale" content="{{ locale | to_og_locale }}">
37 {% for alternate_locale in available_locales %} 37 {% for alternate_locale in available_locales %}
38 {% if alternate_locale != locale %} 38 {% if alternate_locale != locale %}
39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}"> 39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}">
40 {% endif %} 40 {% endif %}
41 {% endfor %} 41 {% endfor %}
42 <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers ) }}"> 42 <meta property="og:url" content="{{ config.get("general", "siteurl") }}{{ so urce.resolve_link(page | ignore_browsers, locale)[1] }}">
ire 2017/10/26 09:59:45 Didn't know about this `source.resolve_link()` fun
juliandoucette 2017/10/26 11:31:41 See https://hg.adblockplus.org/cms/file/tip/cms/so
43 43
44 {# twitter https://dev.twitter.com/cards/markup #} 44 {# twitter https://dev.twitter.com/cards/markup #}
45 <meta name="twitter:site" content="@AdblockPlus" /> 45 <meta name="twitter:site" content="@AdblockPlus" />
46 <meta name="twitter:creator" content="@AdblockPlus" /> 46 <meta name="twitter:creator" content="@AdblockPlus" />
47 47
48 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 48 <link rel="stylesheet" href="/css/main.css" class="cssfx">
49 <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">
50 <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 )">
51 <link rel="apple-touch-icon" href="/img/favicon-large.png" /> 51 <link rel="apple-touch-icon" href="/img/favicon-large.png" />
52 52
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a> 206 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a>
207 </li> 207 </li>
208 </ul> 208 </ul>
209 </section> 209 </section>
210 </div> 210 </div>
211 </footer> 211 </footer>
212 212
213 <script src="/js/main.js"></script> 213 <script src="/js/main.js"></script>
214 </body> 214 </body>
215 </html> 215 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld