Edit pages
How to add, remove, and edit details of pages on your site
Add/remove pages
The pages and sub-pages on your site come from the folder and file structure of your repo.
Examples:
To add or remove a page, simply create or delete the corresponding folder and Markdown file in your repo.
The pages that come with this template – /blog
, /contact
, etc. – can be freely removed or renamed at your discretion.
"Index" is a naming convention for referring to the "default" page of a particular folder. Navigating to yoursite.com/awards
would actually load yoursite.com/awards/index.html
(generated from /awards/index.md
).
Edit page details
Markdown files can have a section at the top called a "front matter" to hold metadata about the page in YAML format. This is how you can pass special per-page details to the template.
Example index.md
page file:
Headers/footers/sections have a solid color that overlays any background image to always maintain readability of text.
If you have a .md
file without a front matter, Jekyll will ignore it and not convert it to an .html
file, and thus it won't end up in your site. If you don't need any page details, just leave the two lines of ---
with nothing in between.
Last updated