Preview
Open Original
Originally written on lamb-releases : The default pagination size was increased so lists show 10 posts per page unless overridden by configuration. Pagination was refactored into a single helper that can paginate either an in-memory list or a database query (including optional filtering + bound parameters), and callers were simplified to rely on it for reading the page number and per-page setting. Result-building metadata was normalized (naming like total_posts/total_pages, offsets, prev/next page), reducing duplicated counting/offset logic in search and tag flows. The UI pagination rendering was enhanced to show a condensed page range with ellipses and to style the current page consistently with links.