From f4869f79c44fe13e046a085315e431604ebff7fa Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 31 Jul 2014 08:48:44 -0400 Subject: [PATCH] Use data file to maintain site navigation - Remove top navigation links from _config.yml --- _config.yml | 13 ------------- _data/navigation.yml | 13 +++++++++++++ _includes/_navigation.html | 11 ++++++++--- 3 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 _data/navigation.yml diff --git a/_config.yml b/_config.yml index 871167c..75cb861 100644 --- a/_config.yml +++ b/_config.yml @@ -32,19 +32,6 @@ google_verify: # https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here bing_verify: -# Links to include in top navigation -# For external links add external: true -links: - - title: About - url: /about/ - - title: Posts - url: /posts/ - - title: Theme Setup - url: /theme-setup/ - - title: Made Mistakes - url: http://mademistakes.com - external: true - # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones timezone: America/New_York future: true diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000..e4f0ba9 --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,13 @@ +# Site navigation links + +- title: About + url: /about/ + +- title: Sample Posts + url: /posts/ + +- title: Theme Setup + url: /theme-setup/ + +- title: Made Mistakes + url: http://mademistakes.com \ No newline at end of file diff --git a/_includes/_navigation.html b/_includes/_navigation.html index 6e3bbc5..cad7599 100644 --- a/_includes/_navigation.html +++ b/_includes/_navigation.html @@ -5,9 +5,14 @@
-- 2.43.0