mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 02:20:59 +00:00
Add site name to <title> element in the project template
This commit is contained in:
parent
8a3c47f76a
commit
ee4e2ed27b
2 changed files with 11 additions and 1 deletions
|
|
@ -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" />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue