|
@@ -86,16 +86,19 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
Link = new Uri(scheme + "://" + host + "/" + p.Id),
|
|
Link = new Uri(scheme + "://" + host + "/" + p.Id),
|
|
PublishDate = p.ModifyDate,
|
|
PublishDate = p.ModifyDate,
|
|
Title = p.Title,
|
|
Title = p.Title,
|
|
- Permalink = scheme + "://" + host + "/" + p.Id
|
|
|
|
|
|
+ Permalink = scheme + "://" + host + "/" + p.Id,
|
|
|
|
+ Guid = p.Id.ToString(),
|
|
|
|
+ FullHtmlContent = p.Content
|
|
}).Cacheable().ToList();
|
|
}).Cacheable().ToList();
|
|
var feed = new Feed()
|
|
var feed = new Feed()
|
|
{
|
|
{
|
|
Title = CommonHelper.SystemSettings["Title"],
|
|
Title = CommonHelper.SystemSettings["Title"],
|
|
Description = CommonHelper.SystemSettings["Description"],
|
|
Description = CommonHelper.SystemSettings["Description"],
|
|
Link = new Uri(scheme + "://" + host + "/rss"),
|
|
Link = new Uri(scheme + "://" + host + "/rss"),
|
|
- Copyright = "(c) 2019"
|
|
|
|
|
|
+ Copyright = CommonHelper.SystemSettings["Title"],
|
|
|
|
+ Language = "zh-cn",
|
|
|
|
+ Items = posts.ToArray()
|
|
};
|
|
};
|
|
- feed.Items.AddRange(posts.ToArray());
|
|
|
|
var rss = feed.Serialize(new SerializeOption()
|
|
var rss = feed.Serialize(new SerializeOption()
|
|
{
|
|
{
|
|
Encoding = Encoding.UTF8
|
|
Encoding = Encoding.UTF8
|