To better organize all of your pages you can centralize them into a single location similar to posts and collections.
Step 1: Start by placing pages (
.html files) into a
_pages directory. Meaningfully naming files should be the goal. Avoid patterns like
/about/index.md as it makes distinguishing between multiple
index.md files harder.
sample-project └── _pages/ ├── 404.md # custom 404 page ├── about.md # about page └── contact.md # contact page
Step 2: Include pages to be sure Jekyll “sees” and processes the files inside of
include: ["_pages"] to
Step 3: Assign permalink overrides in the YAML Front Matter of each.
Recommended Front Matter Defaults:
defaults: # _pages - scope: path: "" type: pages values: layout: single author_profile: true