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

Unified Diff: includes/meta.tmpl

Issue 29511681: Issue 5445 - Add missing essential meta data to acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Created Aug. 10, 2017, 7:35 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 | « filters/to_og_locale.py ('k') | settings.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/meta.tmpl
===================================================================
--- a/includes/meta.tmpl
+++ b/includes/meta.tmpl
@@ -19,18 +19,28 @@
{# HTML5 essentials #}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
{# HTML5 meta #}
<title>{{ title | translate("page-title", "Page title") }}</title>
<meta name="description" content="{{ description | translate('page-description', 'Page description') }}">
+<link rel="canonical" href="{{ get_canonical_url(page) }}" />
{# http://ogp.me/ #}
<meta property="og:image" content="{{ (og_image if og_image else meta.og_image) | translate('og-image', 'Open graph image')}}">
+<meta property="og:title" content="{{ title | translate("page-title") }}">
+<meta property="og:description" content="{{ description | translate("page-description") }}">
+<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) }}">
{# https://dev.twitter.com/cards/markup #}
<meta name="twitter:card" content="{{ meta.twitter_card }}">
<meta name="twitter:site" content="{{ meta.twitter_site }}">
<meta name="twitter:creator" content="{{ meta.twitter_creator }}">
<meta name="twitter:image" content="{{ (twitter_image if twitter_image else meta.twitter_image) | translate('twitter-image', 'Twitter image') }}">
<meta name="twitter:image:alt" content="{{ (twitter_image_alt if twitter_image_alt else meta.twitter_image_alt) | translate('twitter-image-alt', 'Twitter image alternate text') }}">
« no previous file with comments | « filters/to_og_locale.py ('k') | settings.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld