Hello Lene,
If I'm correct (I'm not a web person), 11ty is shipping this filters :
htmlBaseUrl which can replace this custom filter toAbsoluteUrl in main/src/_config/filters/to-absolute-url.js.
dateToRfc3339 (shipped with @11ty/eleventy-plugin-rss) which can replace this custom filter toISOString in src/_config/filters/dates.js
I'm not sure yet how to do it but formatDate in src/_config/filters/dates.js could probably use Intl.DateTimeFormat api and avoid an extra dependency on dayjs
Again thanks for this excellent repo !
EDIT : if toAbsoluteUrl is not needed anymore you could also remove src/_config/utils/throw-if-not-type.js as it is the only place where it is used.
Hello Lene,
If I'm correct (I'm not a web person), 11ty is shipping this filters :
htmlBaseUrlwhich can replace this custom filtertoAbsoluteUrlinmain/src/_config/filters/to-absolute-url.js.dateToRfc3339(shipped with@11ty/eleventy-plugin-rss) which can replace this custom filtertoISOStringinsrc/_config/filters/dates.jsI'm not sure yet how to do it but
formatDateinsrc/_config/filters/dates.jscould probably useIntl.DateTimeFormatapi and avoid an extra dependency ondayjsAgain thanks for this excellent repo !
EDIT : if
toAbsoluteUrlis not needed anymore you could also removesrc/_config/utils/throw-if-not-type.jsas it is the only place where it is used.