diff --git a/templates/base.html b/templates/base.html index 0bedb1a..4015628 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,7 +12,7 @@ {% meta_tags %} - {{ self.title }} + {% include "common/title-item.html" with page=self current=self %}{{ settings.WAGTAIL_SITE_NAME }} {% wagtailuserbar %} diff --git a/templates/common/title-item.html b/templates/common/title-item.html new file mode 100644 index 0000000..62c86ae --- /dev/null +++ b/templates/common/title-item.html @@ -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 %}