From 14b3aea798c0999f56a5555d90db3c332966d085 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 20 Mar 2018 23:00:17 +0100 Subject: make: allow to disable pagination by setting posts_per_page<0 --- man/blogc-make.1.ronn | 4 ++-- man/blogcfile.5.ronn | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'man') diff --git a/man/blogc-make.1.ronn b/man/blogc-make.1.ronn index ca9c4da..2d51992 100644 --- a/man/blogc-make.1.ronn +++ b/man/blogc-make.1.ronn @@ -89,8 +89,8 @@ The rule passes the following helper variables to blogc(1): ### pagination -Build pagination pages from posts. This rule will be disabled if -`posts_per_page` is negative or `0` in blogcfile(5). +Build pagination pages from posts. This rule is disabled if `posts_per_page` +value in blogcfile(5) is negative or `0`. The rule passes the following helper variables to blogc(1): diff --git a/man/blogcfile.5.ronn b/man/blogcfile.5.ronn index fb2d623..2836bad 100644 --- a/man/blogcfile.5.ronn +++ b/man/blogcfile.5.ronn @@ -49,7 +49,8 @@ however these rules can be customized with the following settings, from the section. * `atom_posts_per_page` (default: `10`): - Number of posts per page in the Atom feeds. + Number of posts per page in the Atom feeds. If negative, all the posts are + included. If `0`, no posts are include. * `atom_prefix` (default: `atom`): The prefix of the generated Atom feeds. It is relative to the output @@ -98,7 +99,9 @@ however these rules can be customized with the following settings, from the directories, and is relative to `content_dir` and the output directory. * `posts_per_page` (default: `10`): - Number of posts per page in the pagination pages. + Number of posts per page in the pagination pages. If negative, all the posts + are included. If `0`, no posts are included. Also, if negative or `0`, the + `pagination` build rule is disabled. * `source_ext` (default: `.txt`): The extension of the source files. -- cgit v1.2.3-18-g5258