Add favicon to atom feed
This commit is contained in:
parent
64fc0a8955
commit
8f46db657d
|
@ -21,7 +21,9 @@ public class AtomFeed : Controller {
|
||||||
new Uri($"https://zotan.pw/blog/{post.Shorthand}"), $"https://zotan.pw/blog/{post.Shorthand}",
|
new Uri($"https://zotan.pw/blog/{post.Shorthand}"), $"https://zotan.pw/blog/{post.Shorthand}",
|
||||||
post.PublishedOn.ToDateTime(TimeOnly.MinValue)))
|
post.PublishedOn.ToDateTime(TimeOnly.MinValue)))
|
||||||
.ToList(),
|
.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();
|
AtomXml = new Atom10FeedFormatter(feed).ToXmlString();
|
||||||
|
|
Loading…
Reference in a new issue