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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -20,29 +20,39 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{title|translate("title", "meta")}}</title>
{% if description %}
<meta name="description" content="{{description|translate("description", "meta")}}">
{% endif %}
+ <link rel="canonical" href="{{ get_canonical_url(page | ignore_browsers) }}">
{# facebook / Open Graph http://ogp.me/ #}
<meta property="og:image" content="{{og_image if og_image else '/img/adblockplus_promo.png'}}" />
+ <meta property="og:title" content="{{ title | translate("title") }}">
+ {% if description %}
+ <meta property="og:description" content="{{ description | translate("description") }}">
+ {% endif %}
+ <meta property="og:locale" content="{{ locale | to_og_locale }}">
+ {% for alternate_locale in locales %}
+ {% if alternate_locale != locale %}
+ <meta property="og:locale:alternate" content="{{ alternate_locale | to_og_locale }}">
+ {% endif %}
+ {% endfor %}
+ <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers) }}">
{# twitter https://dev.twitter.com/cards/markup #}
<meta name="twitter:site" content="@AdblockPlus" />
<meta name="twitter:creator" content="@AdblockPlus" />
<link rel="stylesheet" href="/css/main.css" class="cssfx">
<link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000px)" class="cssfx">
<link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px)">
-
- <link rel="canonical" href="https://adblockplus.org/{{page}}">
<link rel="apple-touch-icon" href="/img/favicon-large.png" />
<!--[if IE 8]>
<script src="/js/vendor/ie8.js"></script>
<![endif]-->
{% block head %}
{{head|safe}}
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld