fix(blog): fix rss permalink
This commit is contained in:
parent
0e583de316
commit
ffaa2b2fa4
|
@ -12,16 +12,16 @@ public sealed class BlogItem
|
||||||
|
|
||||||
[XmlElement("comments")]
|
[XmlElement("comments")]
|
||||||
public string Comments { get; set; } = default!;
|
public string Comments { get; set; } = default!;
|
||||||
|
|
||||||
[XmlElement("creator", Namespace = "http://purl.org/dc/elements/1.1/")]
|
[XmlElement("creator", Namespace = "http://purl.org/dc/elements/1.1/")]
|
||||||
public string Creator { get; set; } = default!;
|
public string Creator { get; set; } = default!;
|
||||||
|
|
||||||
[XmlElement("pubDate")]
|
[XmlElement("pubDate")]
|
||||||
public string PubDate { get; set; } = default!;
|
public string PubDate { get; set; } = default!;
|
||||||
|
|
||||||
[XmlElement("guid")]
|
[XmlElement("guid")]
|
||||||
public string Guid { get; set; } = default!;
|
public BlogItemGuid Guid { get; set; } = default!;
|
||||||
|
|
||||||
[XmlElement("description")]
|
[XmlElement("description")]
|
||||||
public string Description { get; set; } = default!;
|
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