Use front matter for feed URL
This commit is contained in:
parent
9e7bc66f56
commit
5e195da5ab
|
@ -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.",
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue