]> fortfriendship.online Git - gnargle.github.io.git/commitdiff
fix some rss validation issues
authorAthene Allen <atheneallen93@gmail.com>
Thu, 30 Jan 2025 13:59:24 +0000 (13:59 +0000)
committerAthene Allen <atheneallen93@gmail.com>
Thu, 30 Jan 2025 13:59:24 +0000 (13:59 +0000)
RSSGen/Program.cs
feed.xml

index f64ac3f079af66c13cf08c4c16ada95a7816ef0d..7204f0687155c1b7578de26341e9585683e68f30 100644 (file)
@@ -45,7 +45,13 @@ myRSS.channel = new rssChannel
     description = "blog entries for athene.gay",
     language = "en-GB",
     link = "https://athene.gay",
-    item = new List<rssChannelItem>()
+    item = new List<rssChannelItem>(),
+    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);
 }
 
index 25e1d397801315adc42745dcd5780ee6615e8d06..1dabf0138b6823a0dec99083f7a2af41e3c60c43 100644 (file)
--- a/feed.xml
+++ b/feed.xml
@@ -5,30 +5,36 @@
     <description>blog entries for athene.gay</description>
     <link>https://athene.gay</link>
     <language>en-GB</language>
+    <link href="https://athene.gay/feed.xml" rel="self" type="application/rss+xml" xmlns="http://www.w3.org/2005/Atom" />
     <item>
       <title>thiswebsite</title>
-      <pubDate>29/01/2025 10:02:13</pubDate>
+      <pubDate>Wed, 29 Jan 2025 10:02:13 GMT</pubDate>
       <link>https://athene.gay/projects/thiswebsite.html</link>
+      <guid isPermaLink="true">https://athene.gay/projects/thiswebsite.html</guid>
     </item>
     <item>
       <title>youbeat</title>
-      <pubDate>26/01/2025 18:30:27</pubDate>
+      <pubDate>Sun, 26 Jan 2025 18:30:27 GMT</pubDate>
       <link>https://athene.gay/projects/youbeat.html</link>
+      <guid isPermaLink="true">https://athene.gay/projects/youbeat.html</guid>
     </item>
     <item>
       <title>miku</title>
-      <pubDate>26/01/2025 18:30:03</pubDate>
+      <pubDate>Sun, 26 Jan 2025 18:30:03 GMT</pubDate>
       <link>https://athene.gay/entries/miku.html</link>
+      <guid isPermaLink="true">https://athene.gay/entries/miku.html</guid>
     </item>
     <item>
       <title>dalamudplugins</title>
-      <pubDate>25/01/2025 21:47:06</pubDate>
+      <pubDate>Sat, 25 Jan 2025 21:47:06 GMT</pubDate>
       <link>https://athene.gay/projects/dalamudplugins.html</link>
+      <guid isPermaLink="true">https://athene.gay/projects/dalamudplugins.html</guid>
     </item>
     <item>
       <title>1</title>
-      <pubDate>25/01/2025 21:47:06</pubDate>
+      <pubDate>Sat, 25 Jan 2025 21:47:06 GMT</pubDate>
       <link>https://athene.gay/entries/1.html</link>
+      <guid isPermaLink="true">https://athene.gay/entries/1.html</guid>
     </item>
   </channel>
 </rss>
\ No newline at end of file