From 88f6cea0485ff47c6de717340cf67f70b19bd315 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 10 Sep 2017 22:40:01 +0100 Subject: [PATCH] Refactor to use a for loop --- source/_includes/nav.html.twig | 40 ++++++++++++++-------------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/source/_includes/nav.html.twig b/source/_includes/nav.html.twig index 045d2607..f7ab0203 100644 --- a/source/_includes/nav.html.twig +++ b/source/_includes/nav.html.twig @@ -1,35 +1,27 @@
+ {% set links = [ + { title: 'About', href: '/' }, + { title: 'Experience', href: '/experience' }, + { title: 'Testimonials', href: '/testimonials' }, + { title: 'Talks', href: '/talks' }, + { title: 'Blog', href: '/blog' }, + { title: 'Contact', href: '/contact' } + ] %} +