From dec03c6eeec924bb09cfa346019eb117b388c27c Mon Sep 17 00:00:00 2001 From: Kyle Gordy Date: Fri, 22 Nov 2019 19:52:33 -0500 Subject: [PATCH] Add navigation data file to simplify link output/ordering --- _data/navigation.yml | 8 +++++ _includes/footer.html | 16 ++++----- _includes/header.html | 76 ++++++++++++++++++++----------------------- 3 files changed, 50 insertions(+), 50 deletions(-) create mode 100644 _data/navigation.yml diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000..b476f06 --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,8 @@ +- title: Blog + url: "/blog/" + +- title: Projects + url: "/projects/" + +- title: Careers + url: "/careers/" diff --git a/_includes/footer.html b/_includes/footer.html index 66e47de..6ca7693 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -7,23 +7,19 @@ {% include logo.html color="dark" %} - - {%- if page_paths -%} + + {% assign links = site.data.navigation %} - {%- endif -%}