aboutsummaryrefslogtreecommitdiff
path: root/templates/blog_rss.rs.xml
blob: 16616a440976685a8a17b370dd7e9160545edfc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@use crate::APPLICATION_NAME as APP;
@use crate::post::Post;

@(posts: Vec<Post>)
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>Xe's Blog</title>
        <link>https://xeiaso.net/blog</link>
        <description>Tech, philosophy and more</description>
        <generator>@APP https://github.com/Xe/site</generator>
        <ttl>1440</ttl>
        @for post in posts {
            <item>
                <guid>https://xeiaso.net/@post.link</guid>
                <title>@post.front_matter.title</title>
                <link>https://xeiaso.net/@post.link</link>
                <description><![CDATA[@Html(post.body_html)]]></description>
                <pubDate>@post.date.to_rfc2822()</pubDate>
            </item>

        }
    </channel>
</rss>