X-Git-Url: https://fortfriendship.online/gitweb/gnargle.github.io.git/blobdiff_plain/52d63417ed29a3f7c449b646bd200986e704330d..764136b207221b618f4a111751633a00686aec55:/RSSGen/Program.cs?ds=inline diff --git a/RSSGen/Program.cs b/RSSGen/Program.cs index 113bb1d..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,12 +69,17 @@ 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); } var output = Generator.SerializeRSS(myRSS); -var rssPath = Path.Combine(Directory.GetCurrentDirectory(), "../../../../feed.rss"); +var rssPath = Path.Combine(Directory.GetCurrentDirectory(), "../../../../feed.xml"); if (File.Exists(rssPath)) {