From 6246c137b410a445c94cb565364874e67c39daf3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 7 Sep 2021 21:07:06 +0100 Subject: [PATCH] refactor: Extract a navbar include --- source/_includes/navbar.html.twig | 7 +++++++ source/_layouts/default.html.twig | 8 +++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 source/_includes/navbar.html.twig diff --git a/source/_includes/navbar.html.twig b/source/_includes/navbar.html.twig new file mode 100644 index 0000000..414a1cb --- /dev/null +++ b/source/_includes/navbar.html.twig @@ -0,0 +1,7 @@ + diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 350c386..8733deb 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -1,11 +1,9 @@ {% extends 'app' %} {% block body %} - + {% include 'navbar' with { + links: site.main_menu, + } only %}

{{ page.title }}