Index: includes/meta/standard.tmpl |
=================================================================== |
--- a/includes/meta/standard.tmpl |
+++ b/includes/meta/standard.tmpl |
@@ -1,8 +1,14 @@ |
<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_exclude_sitename or config.has_option("general", "sitename") == False %} |
Vasily Kuznetsov
2017/11/30 12:53:28
The second part of this condition can be written a
ire
2017/11/30 13:20:00
I like your suggestion better.
Done.
|
<title>{{ title | translate("page-title", "Page title") }}</title> |
+{% else %} |
+<title>{{ title | translate("page-title", "Page title") }} | {{ config.get("general", "sitename") }}</title> |
+{% endif %} |
+ |
{% if description %} |
<meta name="description" content="{{ description | translate("page-description", "Page description") }}"> |
{% endif %} |
<link rel="canonical" href="{{ get_canonical_url(page) }}"> |