-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathfeed.cshtml
More file actions
27 lines (26 loc) · 878 Bytes
/
Copy pathfeed.cshtml
File metadata and controls
27 lines (26 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@using System
@using System.Linq
@using System.Collections.Generic
@using PowerSite
@using PowerSite.DataModel
@model IEnumerable<Document>
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>@Site.Current.Title</title>
<link>@Site.Current.BlogUrl</link>
<description>@Site.Current.Description</description>
<language>en</language>
<lastbuilddate>@DateTime.UtcNow.ToString("r")</lastbuilddate>
<generator>http://HuddledMasses.org/PowerSite</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
@foreach(var post in Model){
<item>
<title>@post.Title</title>
<dc:creator>@post.Author.Name</dc:creator>
<guid ispermalink="true">@Raw(post.FullyQualifiedUrl)</guid>
<description><![CDATA[@Raw(post.RenderedContent)]]></description>
</item>
}
</channel>
</rss>