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 :
htmlBaseUrl
which can replace this custom filtertoAbsoluteUrl
inmain/src/_config/filters/to-absolute-url.js
.dateToRfc3339
(shipped with@11ty/eleventy-plugin-rss
) which can replace this custom filtertoISOString
insrc/_config/filters/dates.js
I'm not sure yet how to do it but
formatDate
insrc/_config/filters/dates.js
could probably useIntl.DateTimeFormat
api and avoid an extra dependency ondayjs
Again thanks for this excellent repo !
EDIT : if
toAbsoluteUrl
is not needed anymore you could also removesrc/_config/utils/throw-if-not-type.js
as it is the only place where it is used.