Closed 8bit-mainstream closed 5 months ago
Did you add the filter to the existing .app/.eleventy.js
file? Creating a separate config file in the root of the project will not work.
If yes, please provide a reproduction.
Yes, I did use the .app/.eleventy.js
How/where would you like to see the reproduction?
Can you share a repository on Github?
Hi, I love your 11ty template!
I tried to add a custom filter to shorten the time and date of the publishedOn custom property, because I've added a blogroll to the index.md and the date pulled from post.data.publishedOn reads something like: Sun Sep 01 2024 02:00:00 GMT+0200 (Mitteleuropäische Sommerzeit)
The custom filter and call for Luxon is added to the .eleventy.js
But I get the error(s): [11ty] 1. Having trouble rendering njk template ../index.md (via TemplateContentRenderError) [11ty] 2. (../index.md) [11ty] Error: filter not found: prettyDate (via Template render error)
Could you please point me in the right direction?