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>
|
||||
<description>What's going on with me and my machines.</description>
|
||||
<language>en-gb</language>
|
||||
<link>{ host }</link>
|
||||
<link>{ host }@templ.Raw("</link>")
|
||||
for _, post := range posts {
|
||||
<item>
|
||||
<title>{ post.Title }</title>
|
||||
<category>{ post.Category.Name }</category>
|
||||
<guid>{ post.PostID() }</guid>
|
||||
<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>
|
||||
<description>
|
||||
@templ.Raw("<![CDATA[")
|
||||
|
Loading…
Reference in New Issue
Block a user