fix(blog): fix rss permalink
This commit is contained in:
parent
0e583de316
commit
ffaa2b2fa4
|
@ -20,7 +20,7 @@ public sealed class BlogItem
|
|||
public string PubDate { get; set; } = default!;
|
||||
|
||||
[XmlElement("guid")]
|
||||
public string Guid { get; set; } = default!;
|
||||
public BlogItemGuid Guid { get; set; } = default!;
|
||||
|
||||
[XmlElement("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
using System.Xml.Serialization;
|
||||
|
||||
namespace OliverBooth.Data.Blog.Rss;
|
||||
|
||||
public struct BlogItemGuid
|
||||
{
|
||||
public BlogItemGuid()
|
||||
{
|
||||
}
|
||||
|
||||
[XmlAttribute("isPermaLink")]
|
||||
public bool IsPermaLink { get; set; } = false;
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; } = default!;
|
||||
|
||||
public static implicit operator BlogItemGuid(string value) => new() { Value = value };
|
||||
}
|
Loading…
Reference in New Issue