1
0

Fixed RSS.

This commit is contained in:
Alexander Andreev 2024-09-15 15:29:42 +04:00
parent 45d1a71229
commit ed273c4815
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -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[")