fixed RSS dates and headers
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
export const prerender = true;
|
||||
import { posts, type DevlogPost } from "../posts";
|
||||
|
||||
const xml = (tposts: Map<string, DevlogPost>) => `<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<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">
|
||||
const xml = (tposts: Map<string, DevlogPost>) => `<rss version="2.0">
|
||||
<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>
|
||||
<description><![CDATA[Development log for the game Homesick by denizk0461]]></description>
|
||||
${getEntries()}
|
||||
@@ -19,7 +19,7 @@ function getEntries(): String {
|
||||
<description><![CDATA[${post[1].description}]]></description>
|
||||
<link>https://denizk0461.dev/projects/projectn5/devlog/${post[0]}</link>
|
||||
<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>
|
||||
`)
|
||||
entries.forEach(entry => {
|
||||
|
||||
Reference in New Issue
Block a user