From 3b226fd242a479936e476d8a664ce72fe7ccfded Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 8 Oct 2017 10:00:25 +0100 Subject: [PATCH] Move nav links into site config --- app/config/sculpin_site.yml | 8 ++++++++ source/_includes/nav.html.twig | 11 +---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index fcf978923..fe7e565e9 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -6,6 +6,14 @@ fuzzy_date_format: F Y apple_touch_icon_sizes: [ 57, 114, 72, 144, 60, 120, 76, 152 ] favicon_sizes: [ 160, 96, 32, 16 ] +nav_links: + - { title: 'About', href: '/', pattern: '/\.' } + - { title: 'Experience', href: '/experience' } + - { title: 'Testimonials', href: '/testimonials' } + - { title: 'Talks', href: '/talks' } + - { title: 'Blog', href: '/blog' } + - { title: 'Contact', href: '/contact' } + ansible_galaxy: url: https://galaxy.ansible.com/opdavies diff --git a/source/_includes/nav.html.twig b/source/_includes/nav.html.twig index b31af5866..1b2807707 100644 --- a/source/_includes/nav.html.twig +++ b/source/_includes/nav.html.twig @@ -6,17 +6,8 @@ - {% set links = [ - { title: 'About', href: '/', pattern: '/\\.' }, - { title: 'Experience', href: '/experience' }, - { title: 'Testimonials', href: '/testimonials' }, - { title: 'Talks', href: '/talks' }, - { title: 'Blog', href: '/blog' }, - { title: 'Contact', href: '/contact' } - ] %} -