Closed dirtystylus closed 4 months ago
Seems like a duplicate of #3136, which now has a potential solution?
@uncenter I will check—I had updated to v2.0.0 of the RSS plugin, but I haven’t read the updated docs to see if my templates need updating (and whether that resolves this issue)
Updating this. The issue was that my RSS feed template was attempting to apply transforms to images stored in Markdown front matter metadata (for my Book and Film content types). So this was generating an error:
{% set book_metadata %}<p><img src="{{metadata.feed_reading.img_base_url}}{{post.data.cover_image}}" alt="Cover image for {{post.data.title}}"/></p><p>Started Reading: {{post.data.start_date | readableDate }}</p><p>Finished Reading: {{post.data.end_date | readableDate }}</p>{% endset %}
<content type="html">{{book_metadata | transformWithHtmlBase(absolutePostUrl, post.url)}}{{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) }}</content>
I have simplified things to not run the book cover image through a transform:
{% set book_metadata %}<p><img src="{{metadata.feed.img_base_url}}{{post.data.cover_image}}" alt="Cover image for {{post.data.title}}"/></p><p>Started Reading: {{post.data.start_date | readableDate }}</p><p>Finished Reading: {{post.data.end_date | readableDate }}</p>{% endset %}
<content type="html">{{book_metadata}}{{ post.content | renderTransforms(post.data.page, metadata.base) }}</content>
Have verified that with this change the content date no longer results in this error.
Operating system
macOS Ventura 13.5
Eleventy
3.0.0-alpha.13
Describe the bug
2024-06-13T10:51:58.360-04:00
npx @11ty/eleventy --serve
I get the error:Curiously, if I set the date to be a few days in the past, say
2024-06-11T10:51:58.360-04:00
then Eleventy builds fineReproduction steps
reading/skull-water
branch of my repo: https://github.com/dirtystylus/mllty/tree/reading/skull-waterDEBUG=* npx @11ty/eleventy --serve
Expected behavior
No response
Reproduction URL
https://github.com/dirtystylus/mllty/tree/reading/skull-water
Screenshots
No response