Skip to content

Instantly share code, notes, and snippets.

@budparr
Created April 17, 2016 13:00
Show Gist options
  • Save budparr/8cf1c05bb3a65a5e31b3dde59c22cbad to your computer and use it in GitHub Desktop.
Save budparr/8cf1c05bb3a65a5e31b3dde59c22cbad to your computer and use it in GitHub Desktop.
How to make Jekyll Pages more organized
Add this to your config.yml file:
```
include:
- _pages
```
and then, if you want the filename to be your permalink (without the _pages in the url), do this: in config.yml, add this to your defaults:
```
- scope:
path: '_pages'
values:
permalink: /:basename/
```
You can also declare or override the permalink in your front matter.
The other choice is to make "pages" a collection. The only problem with that is that then your pages show up in site.documents with the others, so the first choice is probably the best.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment