pagex: support pagination at the layout level

voidcannon: add pagination to collections
This commit is contained in:
bignutty
2025-10-23 23:22:24 +02:00
parent f9139c1087
commit 649db6d82d
4 changed files with 4 additions and 3 deletions

2
pagex

Submodule pagex updated: 059956a48a...60db03433d

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -1,4 +1,5 @@
import { import {
VOIDCANNON_MAX_ITEMS_PER_PAGE,
VoidcannonContentType, VoidcannonContentType,
VoidcannonSectionType VoidcannonSectionType
} from "voidcannon"; } from "voidcannon";
@@ -19,7 +20,7 @@ export default {
entries: { entries: {
_transform: RecentContentTransformer, _transform: RecentContentTransformer,
}, },
per_page: 3 per_page: VOIDCANNON_MAX_ITEMS_PER_PAGE
}, },
name: "Recent Articles", name: "Recent Articles",
description: "Recent Articles", description: "Recent Articles",