From c11b10b3d07bec94f439c294eeb6c0384512e28e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 5 Oct 2018 09:02:07 +0100 Subject: [PATCH] Add title block, override for pages --- source/_layouts/base.html.twig | 2 +- source/_layouts/page.html.twig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_layouts/base.html.twig b/source/_layouts/base.html.twig index 4b2c290..8e227b0 100644 --- a/source/_layouts/base.html.twig +++ b/source/_layouts/base.html.twig @@ -2,7 +2,7 @@ - {{ site.title }} + {% block title %}{{ site.title }}{% endblock %} diff --git a/source/_layouts/page.html.twig b/source/_layouts/page.html.twig index de74197..8537de3 100644 --- a/source/_layouts/page.html.twig +++ b/source/_layouts/page.html.twig @@ -1,5 +1,7 @@ {% extends 'base' %} +{% block title %}{{ page.title }} | {{ site.title }}{% endblock %} + {% block body %} {% include 'layout/header' %} {% include 'layout/main-menu' %}