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

Unified Diff: templates/default.tmpl

Issue 29511670: Issue 5446 - Add missing essential meta data to adblockbrowser.org (Closed) Base URL: https://hg.adblockplus.org/web.adblockbrowser.org
Patch Set: Created Aug. 10, 2017, 7:11 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
@@ -13,21 +13,33 @@
#
# You should have received a copy of the GNU General Public License
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
#}
<!DOCTYPE html>
<html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "ltr"}}">
<head>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{title|translate("title")}}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta property="og:title" content="{{ title | translate("title") }}">
+ {% if description %}
+ <meta name="description" content="{{ description | translate("page-description", "Page description") }}">
+ <meta property="og:description" content="{{ description | translate("page-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) }}">
+ <link rel="canonical" href="{{ get_canonical_url(page) }}" />
<link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
<link rel="apple-touch-icon" href="/images/favicon-large.png" />
- <link rel="canonical" href="https://adblockbrowser.org/{{ page[:-5] if page.split('/')[-1] == 'index' else page }}" />
{{head|safe}}
<!--[if lt lte 9]>
<script src="/js/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class="content-block">
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld