mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-11-08 22:38:36 +01:00
Add RSS feed for news
This commit is contained in:
1 parent
6d1e08711a
commit
5838d3a999
42 files changed
+162
-38
No files matched your search
@@ -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