Fixed RSS.
This commit is contained in:
parent
45d1a71229
commit
ed273c4815
@ -14,14 +14,14 @@ templ RSS(host, author string, posts []mindflow.Post, r *http.Request) {
|
|||||||
<title>Arav's dwelling</title>
|
<title>Arav's dwelling</title>
|
||||||
<description>What's going on with me and my machines.</description>
|
<description>What's going on with me and my machines.</description>
|
||||||
<language>en-gb</language>
|
<language>en-gb</language>
|
||||||
<link>{ host }</link>
|
<link>{ host }@templ.Raw("</link>")
|
||||||
for _, post := range posts {
|
for _, post := range posts {
|
||||||
<item>
|
<item>
|
||||||
<title>{ post.Title }</title>
|
<title>{ post.Title }</title>
|
||||||
<category>{ post.Category.Name }</category>
|
<category>{ post.Category.Name }</category>
|
||||||
<guid>{ post.PostID() }</guid>
|
<guid>{ post.PostID() }</guid>
|
||||||
<pubDate>{ util.ToClientTimezone(post.Date, r).Format(time.RFC1123Z) }</pubDate>
|
<pubDate>{ util.ToClientTimezone(post.Date, r).Format(time.RFC1123Z) }</pubDate>
|
||||||
<link>{ post.PostURL(r.Host, true) }</link>
|
<link>{ post.PostURL(r.Host, true) }@templ.Raw("</link>")
|
||||||
<author>{ author }</author>
|
<author>{ author }</author>
|
||||||
<description>
|
<description>
|
||||||
@templ.Raw("<![CDATA[")
|
@templ.Raw("<![CDATA[")
|
||||||
|
Loading…
Reference in New Issue
Block a user