Skip to content

Template error when using different collection names in the virtual template config #58

@darkpivot

Description

@darkpivot

I could just be doing something wrong here, but I'm not sure what. I really only have two collections on my site currently, one is "post" and one is "update". If I copy the example from the documentation into my .eleventy.js file and change the collection name to "post", the feed builds successfully. However, if I change the collection name to either "update" or "all", I get this error.

Problem writing Eleventy templates:
[11ty] 1. Having trouble rendering njk template ./eleventy-plugin-feed-blog-title-rss.njk (via TemplateContentRenderError)
[11ty] 2. url.startsWith is not a function (via TypeError)

I'm not sure where to go from here. Maybe I could just be missing some part of defining the collection? I have update pages on my site with "tags: update" defined in the front matter, is there more I'm missing?

I am on Eleventy v3.0.0-beta.1 and eleventy-plugin-rss v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions