From e6a20b8a28c0099d97161d382858ee1657052f94 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 10 Mar 2017 12:34:54 -0500 Subject: [PATCH] Move `navigation_pages` to theme data file --- _includes/navigation.html | 2 +- example/_config.yml | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/_includes/navigation.html b/_includes/navigation.html index ea7f0a7..5351313 100644 --- a/_includes/navigation.html +++ b/_includes/navigation.html @@ -9,7 +9,7 @@ {% assign default_paths = site.pages | map: "path" %} - {% assign page_paths = site.navigation_pages | default: default_paths %} + {% assign page_paths = site.data.theme.navigation_pages | default: default_paths %} {% for path in page_paths %} {% assign my_page = site.pages | where: "path", path | first %} diff --git a/example/_config.yml b/example/_config.yml index 980d2f7..29a5c58 100644 --- a/example/_config.yml +++ b/example/_config.yml @@ -44,14 +44,6 @@ feed: paginate: 10 paginate_path: /page:num/ -# Link to specific internal pages in the navigation. -# Create a custom list to override the default setting of including links to all -# pages that have a `title`. Add raw page paths in the order you'd like. - -# navigation_pages: -# - about.md -# - cv.md - # Exclude from processing. # The following items will not be processed, by default. Create a custom list # to override the default setting.