zachleat@zachleat.com’s Mastodon Archive

Reply

@ryangittings @eleventy I do think there is a bug here—can you file this?

I would expect this to work (but `size: 2` doesn’t seem to work correctly with the function that slices the pagination data for serverless)

I would also note that `<pre>{{ pagination | dump(2) }}</pre>` is a good tool here to see what’s going on!

---
title: Posts
pagination:
  data: collections.post
  reverse: true
  alias: 'posts'
  size: 2
  serverless: eleventy.serverless.path.page
permalink:
  serverless: "/serverless/:page/"
---