From 12c46a9d921a7f969680e949cd226407be76dbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Thu, 11 Mar 2021 19:35:54 +0100 Subject: [PATCH] Add note on the requirement of `paginate_by` (#1403) --- docs/content/documentation/templates/pagination.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/documentation/templates/pagination.md b/docs/content/documentation/templates/pagination.md index ff00a71c..19252b6e 100644 --- a/docs/content/documentation/templates/pagination.md +++ b/docs/content/documentation/templates/pagination.md @@ -32,6 +32,8 @@ current_index: Number; total_pages: Number; ``` +**The variable will not be defined if `paginate_by` is not set to a positive number.** + A pager is a page of the pagination; if you have 100 pages and paginate_by is set to 10, you will have 10 pagers each containing 10 pages. @@ -76,4 +78,4 @@ Here is an example from a theme on how to use pagination on a page (`index.html` {% endif %} -``` \ No newline at end of file +```