Add stringToDate filter
because the RSS plugin's date filters will only take an actual date
This commit is contained in:
parent
fe99d4c261
commit
58d96cc5ba
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ module.exports = function (eleventyConfig) {
|
|||
"node_modules/simpledotcss/simple.css": "css/simple.css",
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("stringToDate", function (value) {
|
||||
return new Date(value);
|
||||
});
|
||||
eleventyConfig.addFilter("formatDatetimeForHumans", function (value) {
|
||||
const dt = new Date(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue