posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

Expose current page number during pagination #195

Closed geekman closed 10 years ago

geekman commented 10 years ago

This allows the current page number to be accessed from templates using env.curr_page.

Next and previous page numbers can be inferred by testing their presence and derived using +1 and -1 with the curr_page value.