Pages
/path/to/plume
├── data
│ ├── pages
│ │ ├── about-this-blog.md
│ │ └── something-else.md
│ └── [other data]
└── docker-compose.yamlFront Matter
Pages, like posts, must contain some metadata like a title and the link text. This metadata is defined as "front matter", that is, some YAML set between triple-dashes (i.e. ---) and must be the first thing in the file.
---
title: About this Blog
link: About
weight: 200
---
Your page contents goes here...Metadata Fields
The following metadata fields are supported for pages.
| Key | Type | Required | Details |
|---|---|---|---|
title | string | ✅️ | Page title |
link | string | ✅️ | Navigation link text |
weight | int | ❌️ | Lower values will be sorted before higher value. |
TIP
Metadata fields that are not required may be omitted.
Markdown
Immediately following the front matter should be your page contents, authored in Markdown format. See the Markdown documentation for more information about authoring with Markdown.
Publishing Pages
IMPORTANT
After adding a page you must publish your pages in order for the new page to show up in the list of pages (i.e. navigation).
Publishing pages will render the contents of and update the cache for all pages and the pages list.
docker compose run --rm php plume publish:pagesphp plume publish:pagesUpdating a page
Sometimes you may need to update a page after it's already been published (e.g. after making some edits). Publishing a single page will render the contents and update the cache for the specified page without updating the pages list.
docker compose run --rm php plume publish:page <slug>php plume publish:page <slug>