Use front matter for feed URL

This commit is contained in:
Helen Chong 2024-04-16 23:05:44 +08:00
parent 9e7bc66f56
commit 5e195da5ab
2 changed files with 1 additions and 2 deletions

View File

@ -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.",

View File

@ -7,7 +7,7 @@ eleventyExcludeFromCollections: true
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ sitemeta.siteName }}</title>
<subtitle>{{ sitemeta.siteDescription }}</subtitle>
<link href="{{ sitemeta.feedUrl }}" rel="self"/>
<link href="{{ sitemeta.siteUrl + permalink }}" rel="self"/>
<link href="{{ sitemeta.siteUrl }}"/>
<updated>{{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ sitemeta.siteUrl }}</id>