Skip to content

Commit

Permalink
fix: add "slug" where it was forgotten (#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-marpaud authored Mar 8, 2023
1 parent 1538a38 commit ce57d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/documentation/content/section.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ce57d37

Please sign in to comment.