From ce57d3714710e23c8357f67fe609b33597152645 Mon Sep 17 00:00:00 2001 From: Cyril Marpaud <9333398+cyril-marpaud@users.noreply.github.com> Date: Wed, 8 Mar 2023 22:27:51 +0100 Subject: [PATCH] fix: add "slug" where it was forgotten (#2132) --- docs/content/documentation/content/section.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/documentation/content/section.md b/docs/content/documentation/content/section.md index 0508819dc..9a726e7bd 100644 --- a/docs/content/documentation/content/section.md +++ b/docs/content/documentation/content/section.md @@ -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