From 8f46db657d7d3342439c41752968133ed90b393b Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 26 Nov 2022 18:32:06 +0100 Subject: [PATCH] Add favicon to atom feed --- Controllers/AtomFeed.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controllers/AtomFeed.cs b/Controllers/AtomFeed.cs index 2260b4c..88759cb 100644 --- a/Controllers/AtomFeed.cs +++ b/Controllers/AtomFeed.cs @@ -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();