added cross-reference to the data files topic within the navigation topic

This commit is contained in:
Tom Johnson 2017-01-25 09:49:36 -08:00
parent c7db12bad8
commit a6adfa8358
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ title: Navigation
If your Jekyll site has a lot of pages, you might want to create navigation for the pages. Instead of hard-coding navigation links, you can programmatically retrieve a list of pages to build the navigation for your site.
Although there's already information about [interacting with data files]({% link _docs/datafiles.md %}) in other Jekyll docs, this tutorial dives into building more robust navigation for your site.
There are two primary ways of retrieving pages on a Jekyll site:
* **Retrieve pages listed in a YAML data source**. Store the page data in a YAML (or JSON or CSV) file in the `_data` folder, loop through the YAML properties, and insert the values into your theme.