Correcrtly build title
This commit is contained in:
parent
aa17e4f697
commit
cfdb48f7f2
2 changed files with 6 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
{% meta_tags %}
|
{% meta_tags %}
|
||||||
|
|
||||||
<title>{{ self.title }}</title>
|
<title>{% include "common/title-item.html" with page=self current=self %}{{ settings.WAGTAIL_SITE_NAME }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% wagtailuserbar %}
|
{% wagtailuserbar %}
|
||||||
|
|
5
templates/common/title-item.html
Normal file
5
templates/common/title-item.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{{ page.title }} ::
|
||||||
|
|
||||||
|
{% if page.get_parent and page.get_parent.url and page.get_parent.id != homepage.id %}
|
||||||
|
{% include "common/title-item.html" with page=page.get_parent current=current %}
|
||||||
|
{% endif %}
|
Reference in a new issue