From 8491110c4bc01a37cceb2793aadec184c05b30c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindstr=C3=B6m?= Date: Mon, 20 May 2019 16:30:41 +0700 Subject: [PATCH] Elaboration and imrovement in docs on paging (#692) Added and clarified a few things that would probably have saved me from raising getzola/zola#691. --- docs/content/documentation/templates/pagination.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/documentation/templates/pagination.md b/docs/content/documentation/templates/pagination.md index 53e15ab..7248557 100644 --- a/docs/content/documentation/templates/pagination.md +++ b/docs/content/documentation/templates/pagination.md @@ -3,13 +3,12 @@ title = "Pagination" weight = 30 +++ -Two things can get paginated: a section or a taxonomy term. +Two things can get paginated: a section and a taxonomy term. A paginated section gets the same `section` variable as a normal [section page](./documentation/templates/pages-sections.md#section-variables) minus its pages -while - -Both get a paginated page gets a `paginator` variable of the `Pager` type: +while both a paginated taxonomy page and a paginated section page gets a +`paginator` variable of the `Pager` type: ```ts // How many items per page @@ -36,11 +35,12 @@ current_index: Number; ## Section A paginated section gets the same `section` variable as a normal -[section page](./documentation/templates/pages-sections.md#section-variables) minus its pages. +[section page](./documentation/templates/pages-sections.md#section-variables) +minus its pages. The pages are instead in `paginator.pages`. ## Taxonomy term -A paginated taxonomy gets two variables: +A paginated taxonomy gets two variables aside from the `paginator` variable: - a `taxonomy` variable of type `TaxonomyConfig` - a `term` variable of type `TaxonomyTerm`.