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

Unified Diff: includes/meta/standard.tmpl

Issue 29469558: Issue 5329 - Optimize website-boilerplate for sharing on social media networks (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Separated open graph and twitter fields Created June 21, 2017, 12:23 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
« includes/meta/social.tmpl ('K') | « includes/meta/social.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/meta/standard.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/includes/meta/standard.tmpl
@@ -0,0 +1,61 @@
+{#
+ # This file is part of the website-defaults,
+ # Copyright (C) 2017 eyeo GmbH
+ #
+ # website-defaults is free software: you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License version 3 as
+ # published by the Free Software Foundation.
+ #
+ # website-defaults is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
+ #
+ # ---
+ #
+ # # Essential meta data for all websites
+ #
+ # ## title
+ #
+ # Optimal format
+ # : Primary Keyword - Secondary Keyword | Brand Name
+ #
+ # Optimal length
+ # : 50-60 characters (600px wide on desktop)
+ #
+ # Fallback
+ # : First highest level heading
+ #
+ # Nuance
+ # : Titles are user facing, therefore it's important that they are readable.
+ # But they must also be very compact. Full scentences, punctuation, and
+ # uncommon words are discouraged unless they are specifically targeted.
+ #
+ # ## description
+ #
+ # Optimal format
+ # : Scentence
+ #
+ # Optimal length
+ # : Less than 160 characters
+ #
+ # Fallback
+ # : First 160 characters of phrasing content
+ #
+ # Nuance
+ # : Descriptions are no longer directly weighted by popular search engines.
+ # A good description introduces a page to encourage a click (which is
+ # directly weighted by popular search engines) in less than 160 characters.
+ #}
+<meta charset="utf-8">
+<meta http-equiv="x-ua-compatible" content="ie=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+{% if title %}
+ <title>{{ title | translate("page-title", "Meta page title") }}</title>
+{% endif %}
+{% if description %}
+ <meta name="description" content="{{ description | translate("page-description", "Meta page description") }}">
+{% endif %}
juliandoucette 2017/06/21 15:28:48 Looks like we're missing alternate links! :O Are
juliandoucette 2017/06/22 18:27:43 In Rietveld only individual people make sense. But
ire 2017/07/04 09:03:00 Should the html5shiv and other IE-related scripts
juliandoucette 2017/07/04 10:05:27 - I think it's a best practice to group link and s
ire 2017/07/04 13:27:50 I think (:P) you're right. I didn't necessarily me
juliandoucette 2017/07/04 14:49:29 In that case: Yes.
« includes/meta/social.tmpl ('K') | « includes/meta/social.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld