fix: add "slug" where it was forgotten (#2132)

This commit is contained in:
Cyril Marpaud 2023-03-08 22:27:51 +01:00 committed by GitHub
parent 1538a38bf0
commit ce57d37147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ description = ""
# A draft section is only loaded if the `--drafts` flag is passed to `zola build`, `zola serve` or `zola check`.
draft = false
# Used to sort pages by "date", "update_date", "title", "title_bytes", "weight", or "none". See below for more information.
# Used to sort pages by "date", "update_date", "title", "title_bytes", "weight", "slug" or "none". See below for more information.
sort_by = "none"
# Used by the parent section to order its subsections.
@ -144,7 +144,7 @@ create a list of links to the posts, a simple template might look like this:
This would iterate over the posts in the order specified
by the `sort_by` variable set in the `_index.md` page for the corresponding
section. The `sort_by` variable can be given a few values: `date`, `update_date`
`title`, `title_bytes`, `weight` or `none`. If `sort_by` is not set, the pages will be
`title`, `title_bytes`, `weight`, `slug` or `none`. If `sort_by` is not set, the pages will be
sorted in the `none` order, which is not intended for sorted content.
Any page that is missing the data it needs to be sorted will be ignored and