From 5e195da5abcc50b177a9ac81daeb0e16231491d3 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:05:44 +0800 Subject: [PATCH] Use front matter for feed URL --- src/_data/sitemeta.js | 1 - src/feed.njk | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_data/sitemeta.js b/src/_data/sitemeta.js index 64419041..8015d2b0 100644 --- a/src/_data/sitemeta.js +++ b/src/_data/sitemeta.js @@ -1,7 +1,6 @@ module.exports = { siteName: "Leilukin's Hub", siteUrl: "https://leilukin.neocities.org" || "http://localhost:8080", - feedUrl: this.siteUrl + "/feed.xml", siteLocale: "en_MY", siteLanguage: "en", siteDescription: "Leilukin's personal website.", diff --git a/src/feed.njk b/src/feed.njk index affe7c43..e7d8af5b 100644 --- a/src/feed.njk +++ b/src/feed.njk @@ -7,7 +7,7 @@ eleventyExcludeFromCollections: true {{ sitemeta.siteName }} {{ sitemeta.siteDescription }} - + {{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }} {{ sitemeta.siteUrl }}