Add favicon to atom feed

This commit is contained in:
Laura Hausmann 2022-11-26 18:32:06 +01:00
parent 64fc0a8955
commit 8f46db657d
Signed by: zotan
GPG Key ID: D044E84C5BE01605
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ public class AtomFeed : Controller {
new Uri($"https://zotan.pw/blog/{post.Shorthand}"), $"https://zotan.pw/blog/{post.Shorthand}",
post.PublishedOn.ToDateTime(TimeOnly.MinValue)))
.ToList(),
Links = { SyndicationLink.CreateSelfLink(new Uri("https://zotan.pw/blog/feed.atom")) }
Generator = $"zotan.pw-web {Utils.Version}",
ImageUrl = new Uri("https://zotan.pw/favicon.ico"),
Links = { SyndicationLink.CreateSelfLink(new Uri("https://zotan.pw/blog/feed.atom")), SyndicationLink.CreateAlternateLink(new Uri("https://zotan.pw/blog")) }
};
AtomXml = new Atom10FeedFormatter(feed).ToXmlString();