From 1a7eea4f546ec5ead24aa31d7bf884ca482287c1 Mon Sep 17 00:00:00 2001 From: Athene Allen Date: Thu, 30 Jan 2025 13:59:24 +0000 Subject: [PATCH] fix some rss validation issues --- RSSGen/Program.cs | 15 +++++++++++++-- feed.xml | 16 +++++++++++----- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/RSSGen/Program.cs b/RSSGen/Program.cs index f64ac3f..7204f06 100644 --- a/RSSGen/Program.cs +++ b/RSSGen/Program.cs @@ -45,7 +45,13 @@ myRSS.channel = new rssChannel description = "blog entries for athene.gay", language = "en-GB", link = "https://athene.gay", - item = new List() + item = new List(), + link1 = new link + { + href = "https://athene.gay/feed.xml", + rel="self", + type = "application/rss+xml", + } }; foreach (var file in fileInfos) @@ -53,7 +59,7 @@ foreach (var file in fileInfos) var item = new rssChannelItem() { title = Path.GetFileNameWithoutExtension(file.Name), - pubDate = file.CreationTimeUtc.ToString(), + pubDate = file.CreationTimeUtc.ToString("r"), }; if (file.FullName.Contains("entries")) { @@ -63,6 +69,11 @@ foreach (var file in fileInfos) { item.link = "https://athene.gay/projects/" + Path.GetFileName(file.Name); } + item.guid = new rssChannelItemGuid() + { + isPermaLink = true, + Value = item.link + }; myRSS.channel.item.Add(item); } diff --git a/feed.xml b/feed.xml index 25e1d39..1dabf01 100644 --- a/feed.xml +++ b/feed.xml @@ -5,30 +5,36 @@ blog entries for athene.gay https://athene.gay en-GB + thiswebsite - 29/01/2025 10:02:13 + Wed, 29 Jan 2025 10:02:13 GMT https://athene.gay/projects/thiswebsite.html + https://athene.gay/projects/thiswebsite.html youbeat - 26/01/2025 18:30:27 + Sun, 26 Jan 2025 18:30:27 GMT https://athene.gay/projects/youbeat.html + https://athene.gay/projects/youbeat.html miku - 26/01/2025 18:30:03 + Sun, 26 Jan 2025 18:30:03 GMT https://athene.gay/entries/miku.html + https://athene.gay/entries/miku.html dalamudplugins - 25/01/2025 21:47:06 + Sat, 25 Jan 2025 21:47:06 GMT https://athene.gay/projects/dalamudplugins.html + https://athene.gay/projects/dalamudplugins.html 1 - 25/01/2025 21:47:06 + Sat, 25 Jan 2025 21:47:06 GMT https://athene.gay/entries/1.html + https://athene.gay/entries/1.html \ No newline at end of file -- 2.47.3