docs: Update frontmatter documentation

This commit is contained in:
adnano 2021-05-21 16:53:05 -04:00
parent a4a8600c1e
commit 9e15d6c26e

View file

@ -80,14 +80,58 @@ Example:
The following keys are supported: The following keys are supported:
[[ *Key* *title*
:[ *Description* The title of the page.
| title
: Page title Example:
| date
: Page date ```
| params ---
: Extra parameters to be passed to templates title: My first post
---
```
*date*
The date of the page. Pages are sorted by date in reverse order, so newer
pages will be placed above older pages.
Example:
```
---
date: 2021-05-21
---
```
*weight*
The weight of the page. Pages are sorted by weight in increasing order, so
pages with a smaller weight will be placed above pages with a larger weight.
Example:
```
---
weight: 1
---
```
*params*
Specifies extra parameters to be provided to templates.
Example:
```
---
params:
key: value
---
```
## SORTING
Pages are sorted automatically. Pages are first ordered by weight in increasing
order, then by date from newest to oldest, and then by filename in alphabetical
order.
# TEMPLATES DIRECTORY # TEMPLATES DIRECTORY