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

Unified Diff: templates/default.tmpl

Issue 29375829: Issue 4899 - set template META description on eyeo.com (Closed)
Patch Set: Deleted META-title and changed META-description Created March 1, 2017, 11:27 a.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
diff --git a/templates/default.tmpl b/templates/default.tmpl
index 9026714b4f9392e1bfc9e7f1f8fd3a0d0e0da63f..a22e8350c0d26e05021426b04ed58525270ea1dc 100644
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -1,11 +1,19 @@
<!DOCTYPE html>
<html lang="{{locale}}">
<head>
- <meta charset="UTF-8" />
+ {# 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">
- <meta property="og:image" content="{{og_image if og_image else 'https://eyeo.com/images/eyeo-meta-default.png'}}">
+ {# HTML5 meta #}
+ {% if description %}
+ <meta name="description" content="{{ description }}">
+ {% endif %}
+
+ {# http://ogp.me/ #}
+ <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 %}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld