layouts/blog.xml

19 lines · 749 bytes

 1<rss version="2.0">
 2  <channel>
 3    <title :text="$site.title"></title>
 4    <link :text="$site.host_url"></link>
 5    <description :text="$site.title.suffix(' - Blog')"></description>
 6    <generator>Zine -- https://zine-ssg.io</generator>
 7    <language>en-US</language>
 8    <lastBuildDate :text="$build.generated.formatHTTP()"></lastBuildDate>
 9    <ctx :loop="$page.subpages()">
10      <item>
11        <title :text="$loop.it.title"></title>
12        <description :text="$loop.it.content()"></description>
13        <link :text="$site.host_url.addPath($loop.it.link())"></link>
14        <pubDate :text="$loop.it.date.formatHTTP()"></pubDate>
15        <guid :text="$site.host_url.addPath($loop.it.link())"></guid>
16      </item>
17    </ctx>
18  </channel>
19</rss>