2020-07-27 03:12:01 +00:00
|
|
|
@use crate::post::Post;
|
|
|
|
@use chrono::Utc;
|
|
|
|
|
|
|
|
@(posts: Vec<Post>)
|
|
|
|
|
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<id>https://christine.website/blog.atom</id>
|
2021-08-07 16:22:05 +00:00
|
|
|
<title>Xe's Blog</title>
|
2020-07-27 03:12:01 +00:00
|
|
|
<updated>@Utc::now().to_rfc3339()</updated>
|
|
|
|
<author>
|
2021-11-06 09:48:16 +00:00
|
|
|
<name>Xe</name>
|
2020-07-27 03:12:01 +00:00
|
|
|
<email>me@@christine.website</email>
|
|
|
|
</author>
|
|
|
|
<link href="https://christine.website/blog.atom" rel="self"/>
|
|
|
|
<link href="https://christine.website/blog" rel="alternate"/>
|
|
|
|
<generator uri="@env!("CARGO_PKG_REPOSITORY")" version="@env!("CARGO_PKG_VERSION")">@env!("CARGO_PKG_NAME")</generator>
|
|
|
|
@for post in posts {
|
|
|
|
<entry>
|
2021-04-18 14:40:03 +00:00
|
|
|
<id>https://christine.website/@post.link</id>
|
2020-07-27 03:12:01 +00:00
|
|
|
<title>@post.front_matter.title</title>
|
2021-01-23 02:11:48 +00:00
|
|
|
<published>@post.date.to_rfc3339()</published>
|
2021-04-18 14:40:03 +00:00
|
|
|
<link href="https://christine.website/@post.link" rel="alternate"/>
|
2020-07-27 03:12:01 +00:00
|
|
|
</entry>
|
|
|
|
}
|
|
|
|
</feed>
|