forked from mirror/oddmu
This is a major change for anybody who has templates. In order to handle the encoding of directory and filenames correctly for uploads, page.Base() was added. It required at url.PathUnescape because it uses page.Name and that used to be escaped before rendering. Instead of doing that, there's now the actual .Name (unescaped) and .Path (escaped). This change is only necessary if the name contains characters that the html/template doesn't escape for encodePathSegment: semicolon, comma and question-mark. We can ignore the forward-slash because we don't allow that in page names.
29 lines
1004 B
HTML
29 lines
1004 B
HTML
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
|
<channel>
|
|
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
|
<title>{{.Title}}</title>
|
|
<link>https://example.org/</link>
|
|
<managingEditor>you@example.org (Your Name)</managingEditor>
|
|
<webMaster>you@example.org (Your Name)</webMaster>
|
|
<atom:link href="https://example.org/view/{{.Path}}.rss" rel="self" type="application/rss+xml"/>
|
|
<description>This is the digital garden of Your Name.</description>
|
|
<image>
|
|
<url>https://example.org/view/logo.jpg</url>
|
|
<title>{{.Title}}</title>
|
|
<link>https://example.org/</link>
|
|
</image>
|
|
{{range .Items}}
|
|
<item>
|
|
<title>{{.Title}}</title>
|
|
<link>https://example.org/view/{{.Path}}</link>
|
|
<guid>https://example.org/view/{{.Path}}</guid>
|
|
<description>{{.Html}}</description>
|
|
<pubDate>{{.Date}}</pubDate>
|
|
{{range .Hashtags}}
|
|
<category>{{.}}</category>
|
|
{{end}}
|
|
</item>
|
|
{{end}}
|
|
</channel>
|
|
</rss>
|