Move `navigation_pages` to theme data file

This commit is contained in:
Michael Rose 2017-03-10 12:34:54 -05:00
parent b0106a2f9b
commit e6a20b8a28
2 changed files with 1 additions and 9 deletions

View File

@ -9,7 +9,7 @@
<!-- site.pages links --> <!-- site.pages links -->
{% assign default_paths = site.pages | map: "path" %} {% 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 %} {% for path in page_paths %}
{% assign my_page = site.pages | where: "path", path | first %} {% assign my_page = site.pages | where: "path", path | first %}

View File

@ -44,14 +44,6 @@ feed:
paginate: 10 paginate: 10
paginate_path: /page:num/ 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. # Exclude from processing.
# The following items will not be processed, by default. Create a custom list # The following items will not be processed, by default. Create a custom list
# to override the default setting. # to override the default setting.