mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-07-13 08:07:11 +02:00
Add RSS feed for news
This commit is contained in:
@@ -28,6 +28,10 @@ function rewriteManualLinks(content, lang) {
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
|
||||
eleventyConfig.addFilter("dateToRfc822", function (dateObj) {
|
||||
return new Date(dateObj).toUTCString();
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("readableDate", function (dateObj) {
|
||||
return new Intl.DateTimeFormat("en", {
|
||||
year: "numeric",
|
||||
|
||||
Reference in New Issue
Block a user