From fd19469e403d140a894dcfee9a0874e1d60b41d5 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 13 Aug 2019 19:19:43 +0200 Subject: [PATCH] Clarify a bit the pager term Closes #775 --- .../documentation/templates/pagination.md | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/content/documentation/templates/pagination.md b/docs/content/documentation/templates/pagination.md index aaa6d6f1..e50d92b3 100644 --- a/docs/content/documentation/templates/pagination.md +++ b/docs/content/documentation/templates/pagination.md @@ -11,27 +11,30 @@ 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 +// How many items per pager paginate_by: Number; // The base URL for the pagination: section permalink + pagination path -// You can concatenate an integer with that to get a link to a given pagination page. +// You can concatenate an integer with that to get a link to a given pagination pager. base_url: String; -// How many pagers in this paginator +// How many pagers in total number_pagers: Number; -// Permalink to the first page +// Permalink to the first pager first: String; -// Permalink to the last page +// Permalink to the last pager last: String; -// Permalink to the previous page, if there is one +// Permalink to the previous pager, if there is one previous: String?; -// Permalink to the next page, if there is one +// Permalink to the next pager, if there is one next: String?; -// All pages for the current page +// All pages for the current pager pages: Array; -// Which page are we on +// Which pager are we on current_index: Number; ``` +A pager is a page of the pagination: if you have 100 pages and are paginating 10 by 10, you will have 10 pagers containing +each 10 pages. + ## Section A paginated section gets the same `section` variable as a normal