From c9a8a1b29f060445284e07df2f4dbaabe18e3d21 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 9 Apr 2013 20:29:48 +0200 Subject: [PATCH] A bunch of pagination attributes will be nil if the subsequent/previous pages don't exist --- site/_posts/2012-07-01-pagination.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/site/_posts/2012-07-01-pagination.md b/site/_posts/2012-07-01-pagination.md index e412e697..4706a2cc 100644 --- a/site/_posts/2012-07-01-pagination.md +++ b/site/_posts/2012-07-01-pagination.md @@ -66,19 +66,39 @@ attributes:

previous_page

-

page number of the previous pagination page

+ +

+ page number of the previous pagination page, + or nil if no previous page exists +

+

previous_page_path

-

path (including leading "/") of previous pagination page

+ +

+ path (including leading "/") of previous pagination page, + or nil if no previous page exists +

+

next_page

-

page number of the next pagination page

+ +

+ page number of the next pagination page, + or nil if no subsequent page exists +

+

next_page_path

-

path (including leading "/") of next pagination page

+ +

+ path (including leading "/") of next pagination page, + or nil if no subsequent page exists +

+