Left: | ||
Right: |
OLD | NEW |
---|---|
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 |
juliandoucette
2017/12/08 15:44:56
Detail: This logic seems complicated. But I believ
ire
2017/12/11 15:34:17
Ack. I agree it's not very readable, but it was th
| |
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") }} | | |
12 {{ title_suffix | translate("custom-page-title-suffix", "Page title suffix") } } | |
13 </title> | |
14 {% elif has_string("name", "site") %} | |
15 <title> | |
16 {{ title | translate("page-title", "Page title") }} | | |
17 {{ get_string("name", "site") | translate("site-name", "Page title suffix") }} | |
juliandoucette
2017/12/08 15:44:56
You don't need the translate filter after get_stri
ire
2017/12/11 15:34:17
Done.
| |
18 </title> | |
9 {% endif %} | 19 {% endif %} |
10 | 20 |
11 {% if description %} | 21 {% if description %} |
12 <meta name="description" content="{{ description | translate("page-description ", "Page description") }}"> | 22 <meta name="description" content="{{ description | translate("page-description ", "Page description") }}"> |
13 {% endif %} | 23 {% endif %} |
14 <link rel="canonical" href="{{ get_canonical_url(page) }}"> | 24 <link rel="canonical" href="{{ get_canonical_url(page) }}"> |
OLD | NEW |