fixed RSS dates and headers
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
import { posts, type DevlogPost } from "../posts";
|
import { posts, type DevlogPost } from "../posts";
|
||||||
|
|
||||||
const xml = (tposts: Map<string, DevlogPost>) => `<?xml version="1.0" encoding="UTF-8" ?>
|
const xml = (tposts: Map<string, DevlogPost>) => `<rss version="2.0">
|
||||||
<rss xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:atom="https://www.w3.org/2005/Atom" version="2.0">
|
|
||||||
<channel>
|
<channel>
|
||||||
<title>denizk0461</title>
|
<atom:link href="http://denizk0461.dev/projects/projectn5/devlog/feed.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<title>Project N5 Devlog</title>
|
||||||
<link>https://denizk0461.dev/projects/projectn5/devlog/</link>
|
<link>https://denizk0461.dev/projects/projectn5/devlog/</link>
|
||||||
<description><![CDATA[Development log for the game Homesick by denizk0461]]></description>
|
<description><![CDATA[Development log for the game Homesick by denizk0461]]></description>
|
||||||
${getEntries()}
|
${getEntries()}
|
||||||
@@ -19,7 +19,7 @@ function getEntries(): String {
|
|||||||
<description><![CDATA[${post[1].description}]]></description>
|
<description><![CDATA[${post[1].description}]]></description>
|
||||||
<link>https://denizk0461.dev/projects/projectn5/devlog/${post[0]}</link>
|
<link>https://denizk0461.dev/projects/projectn5/devlog/${post[0]}</link>
|
||||||
<guid isPermaLink="true">https://denizk0461.dev/projects/projectn5/devlog/${post[0]}</guid>
|
<guid isPermaLink="true">https://denizk0461.dev/projects/projectn5/devlog/${post[0]}</guid>
|
||||||
<pubDate><![CDATA[${new Date(post[1].date)}]]></pubDate>
|
<pubDate><![CDATA[${new Date(post[1].date).toUTCString()}]]></pubDate>
|
||||||
</item>
|
</item>
|
||||||
`)
|
`)
|
||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
|
|||||||
Reference in New Issue
Block a user