Skip to content

using alias: page in pagination throws error #1794

Open
@andyford

Description

@andyford

given this frontmatter pagination setup:

---
pagination:
    data: pages
    size: 1
    alias: page
permalink: "{{ page.slug | slug }}/"
layout: layouts/base.njk
---

Eleventy will throw the following error:

> mapB.date.getTime is not a function

`TypeError` was thrown:
    TypeError: mapB.date.getTime is not a function

This appears to be because of using the name page in alias: page.

It would be great to support alias: page without issue, but if that's not feasible, it would be nice to add this caveat to the documentation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions