Moved atom:link to channel level

This commit is contained in:
olaven 2023-03-11 20:06:07 +01:00
parent 72aad6c8f8
commit a0a342114e
1 changed files with 5 additions and 5 deletions

View File

@ -32,15 +32,15 @@ async function buildFeed(seriesId: string) {
["version", "1.0"], ["version", "1.0"],
["encoding", "UTF-8"], ["encoding", "UTF-8"],
]), ]),
tag("atom:link", "", [
["href", linkValue],
["rel", "self"],
["type", "application/rss+xml"]
]),
tag( tag(
"rss", "rss",
[ [
tag("channel", [ tag("channel", [
tag("atom:link", "", [
["href", `https://nrss.deno.dev/api/feeds/${seriesId}`],
["rel", "self"],
["type", "application/rss+xml"]
]),
tag("title", serie.titles.title), tag("title", serie.titles.title),
tag("link", linkValue), tag("link", linkValue),
tag("itunes:author", "NRK"), tag("itunes:author", "NRK"),