有與創建反對使用剃刀一把umbraco一個博客RSS提要的問題。以下作品的代碼,但只要我嘗試添加任何值的項目節點,我得到XML錯誤下的鏈接標籤,下面是代碼。ASP.NET RSS訂閱錯誤鏈接標籤項的節點?問題與剃刀一把umbraco RSS訂閱
<rss version="2.0">
<channel>
<title>@landing.uBlogsyRssTitle</title>
<description>@landing.uBlogsyRssDescription</description>
<copyright>@landing.uBlogsyRssCopyright</copyright>
@*<image>@landing.uBlogsyRssImage</image>*@
<link>@[email protected]</link>
<lastBuildDate>@lastPubDate.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</lastBuildDate>
<pubDate>@lastPubDate.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</pubDate>
@foreach (var p in posts)
{
<item>
<title>@p.GetProperty("uBlogsyContentTitle").Value</title>
<link></link>
<author>@p.GetProperty("uBlogsyPostAuthor").Value</author>
<description>@p.GetProperty("uBlogsyContentBody").Value.StripHtml().Trim()</description>
<guid>@p.Url</guid>
<pubDate>@p.GetProperty("uBlogsyPostDate").Value.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</pubDate>
</item>
}
</channel>
</rss>
輝煌!感謝那 –