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

Unified Diff: templates/default.tmpl

Issue 29511691: Issue 5444 - Add missing essential meta data to eyeo.com (Closed) Base URL: https://hg.adblockplus.org/web.eyeo.com
Patch Set: Created Aug. 10, 2017, 8:04 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
@@ -2,43 +2,43 @@
<html lang="{{locale}}">
<head>
{# HTML5 essentials #}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{# HTML5 meta #}
+ <title>{{ title }} | eyeo GmbH</title>
{% if description %}
- <meta name="description" content="{{ description }}">
+ <meta name="description" content="{{ description }}">
{% endif %}
+ <link rel="canonical" href="{{ get_canonical_url(page) }}" />
{# http://ogp.me/ #}
+ <meta property="og:title" content="{{ title }} | eyeo GmbH">
<meta property="og:image" content="{{og_image if og_image else 'https://eyeo.com/images/eyeo-meta-default.png'}}">
-
- {% if title %}
- <title>{{title}} | eyeo GmbH</title>
- {% else %}
- <title>eyeo GmbH</title>
+ {% if description %}
+ <meta property="og:description" content="{{ description }}">
{% endif %}
+ <meta property="og:url" content="{{ get_canonical_url(page) }}">
+ <meta property="og:locale" content="{{ locale | to_og_locale }}">
<link rel="shortcut icon" href="/images/favicon.png" />
<link rel="stylesheet" href="/css/styles.css" type="text/css" media="all">
<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<script src="/js/respond.min.js"></script>
<![endif]-->
<script src="/js/jquery.js"></script>
<script src="/js/scripts.js"></script>
- <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.split('/')[-1] == 'index' else page }}">
-
{% block head %}
{{head|safe}}
{% endblock %}
</head>
<body id="top" class="home page page-template-default apollo_validation_on cover wpb-js-composer js-comp-ver-3.6.14.1 vc_responsive">
<header id="header" class="top">
« no previous file with comments | « settings.ini ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld