Anton Bakulin

Pagination

Contents

Listing pages automatically paginate regular posts when there are more than 20. Featured posts are not paginated — they always appear at the top.


How it works

Example URLs:

/blog          → page 1 (default)
/blog?page=2   → page 2
/blog?page=3   → page 3

Out-of-range pages

If ?page=N exceeds the total number of pages, OnyxFolio clamps the value to the last valid page. No 404 for out-of-range page numbers.


Listing template

The listing.html template renders:

  1. Featured posts — horizontally highlighted cards (all, no pagination)
  2. Regular posts — cards, 20 per page
  3. Pagination controls — prev/next page links with current page indicator

Section scope

Pagination covers posts in the section and all sub-sections. A listing at /blog paginates both blog/*.md and blog/series/*.md posts together.


See also