kopia lustrzana https://github.com/wagtail/wagtail
Add site name to `<title>` element in the project template
rodzic
8a3c47f76a
commit
ee4e2ed27b
|
@ -173,6 +173,7 @@ Contributors
|
|||
* Ricky Robinett
|
||||
* Axel Haustant
|
||||
* Henk-Jan van Hasselaar
|
||||
* alexfromvl
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -8,7 +8,16 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<title>{% templatetag openblock %} block title %}{% templatetag openblock %} if self.seo_title %}{% templatetag openvariable %} self.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} self.title {% templatetag closevariable %}{% templatetag openblock %} endif {% templatetag closeblock %}{% templatetag openblock %} endblock {% templatetag closeblock %}{% templatetag openblock %} block title_suffix {% templatetag closeblock %}{% templatetag openblock %} endblock {% templatetag closeblock %}</title>
|
||||
<title>
|
||||
{% templatetag openblock %} block title %}
|
||||
{% templatetag openblock %} if self.seo_title %}{% templatetag openvariable %} self.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} self.title {% templatetag closevariable %}{% templatetag openblock %} endif %}
|
||||
{% templatetag openblock %} endblock %}
|
||||
{% templatetag openblock %} block title_suffix %}
|
||||
{% templatetag openblock %} with self.get_site.site_name as site_name %}
|
||||
{% templatetag openblock %} if site_name %}- {% templatetag openvariable %} site_name {% templatetag closevariable %}{% templatetag openblock %} endif %}
|
||||
{% templatetag openblock %} endwith %}
|
||||
{% templatetag openblock %} endblock %}
|
||||
</title>
|
||||
<meta name="description" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue