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

Side by Side Diff: includes/meta/standard.tmpl

Issue 29630648: Issue 6013 - Add site name to document title in website-defaults standard metadata (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Dec. 5, 2017, 11:19 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pages/index.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <meta charset="utf-8"> 1 <meta charset="utf-8">
2 <meta http-equiv="x-ua-compatible" content="ie=edge"> 2 <meta http-equiv="x-ua-compatible" content="ie=edge">
3 <meta name="viewport" content="width=device-width, initial-scale=1"> 3 <meta name="viewport" content="width=device-width, initial-scale=1">
4 4
5 {% if title_exclude_sitename or not has_string("name", "site") %} 5 {% if title_suffix == 'none' or (not title_suffix and not has_string("name", "si te")) %}
6 <title>{{ title | translate("page-title", "Page title") }}</title> 6 <title>
7 {% else %} 7 {{ title | translate("page-title", "Page title") }}
8 <title>{{ title | translate("page-title", "Page title") }} | {{ get_string("name ", "site") }}</title> 8 </title>
9 {% elif title_suffix %}
10 <title>
11 {{ title | translate("page-title", "Page title") }} | {{ title_suffix }}
juliandoucette 2017/12/06 17:07:17 You forgot the translate filter.
ire 2017/12/07 13:35:10 Done.
12 </title>
13 {% elif has_string("name", "site") %}
14 <title>
15 {{ title | translate("page-title", "Page title") }} | {{ get_string("name", "s ite") }}
16 </title>
9 {% endif %} 17 {% endif %}
10 18
11 {% if description %} 19 {% if description %}
12 <meta name="description" content="{{ description | translate("page-description ", "Page description") }}"> 20 <meta name="description" content="{{ description | translate("page-description ", "Page description") }}">
13 {% endif %} 21 {% endif %}
14 <link rel="canonical" href="{{ get_canonical_url(page) }}"> 22 <link rel="canonical" href="{{ get_canonical_url(page) }}">
OLDNEW
« no previous file with comments | « no previous file | pages/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld