-
Notifications
You must be signed in to change notification settings - Fork 34
Pages
Routes unassociated with anything on the root will go to the page route. This route renders out Markdown pages, and is used for static content you want integrated into the site templates.
Pages should be placed in the pageDirectory
of your config file, and are named item.md
, where item is the name used; for example; /page
will load page.md
.
titles.json
is the file that gives pages meaning - that is, if they should appear on the navbar, a human-readable name, redirection, etc. It's a collection of key-value pairs, where the key represents the page (without extension or route prefix) and the value is an object with the following values:
-
supressTitle
: Optional. If the<h1>
when rendering the page should be hidden. -
title
: The page's human-readable title. Keep it short, because it will appear on the navbar. -
redirectTo
: Optional. If the page is actually a redirect to another location; in which case, redirect to the location given. -
show
: If the page should appear on the navbar.
home
is a special case - it's hardcoded (for now) as the default page, and always has an item on the navbar; as such, show
should be false.