From b22428ebae7736e3e35fd43afdcca6d2d3fd1740 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Add navbar --- source/_layouts/default.html.twig | 6 +++++- source/_layouts/page.html.twig | 2 +- source/_partials/navbar.html.twig | 30 ++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 source/_partials/navbar.html.twig diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 56c9c997d..54c52ce16 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -1,5 +1,9 @@ {% extends 'app' %} {% block body %} - {% block content %}{% endblock %} + {% include 'navbar' %} + + {% block content_wrapper %} + {% block content %}{% endblock %} + {% endblock %} {% endblock %} diff --git a/source/_layouts/page.html.twig b/source/_layouts/page.html.twig index 0192cb19f..51217646a 100644 --- a/source/_layouts/page.html.twig +++ b/source/_layouts/page.html.twig @@ -1,6 +1,6 @@ {% extends "default" %} -{% block body %} +{% block content_wrapper %}

{{ page.title }}

{{ parent() }} diff --git a/source/_partials/navbar.html.twig b/source/_partials/navbar.html.twig new file mode 100644 index 000000000..02ba20fdd --- /dev/null +++ b/source/_partials/navbar.html.twig @@ -0,0 +1,30 @@ +
+
+ +
+