$pkg
$env
$data
$page
url -> pass to link()
slug ->
matter -> from gray-matter
params -> from dynamic segment matchers
srcFile
outFile
? date -> parsed from creation date; can be overriden from 'matter'
? title -> parsed from slug; can be overriden from 'matter'
? paginated -> added if matter contains valid `paginate` instructions
index: __p || 0
group: chunk(data, size)[__p]
groups: chunk(data, size)[__p]
baseUrl: same as $page.url
prevUrl: prev page's url
nextUrl: next page's url
lastUrl: last page's url
$pages
NOTE: the $page local is actually a getter, since on first call it might need to evaluate the paginate.data key from matter. The following is a rough sketch of how this works:
locals
$page
keysNOTE: the
$page
local is actually a getter, since on first call it might need to evaluate thepaginate.data
key frommatter
. The following is a rough sketch of how this works: