layouts/devlog.xml

21 lines · 891 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(' - Devlog')"></description>
 6    <generator>Zine -- https://zine-ssg.io</generator>
 7    <language>en-US</language>
 8    <lastBuildDate :text="$build.generated.formatHTTP()"></lastBuildDate>
 9    <ctx :if="$page.subpages().first?()">
10      <ctx :loop="$if.contentSections().slice(1)">
11        <item>
12          <title :text="$loop.it.heading()"></title>
13          <description :text="$loop.it.html()"></description>
14          <link :text="$site.host_url.addPath($page.link().suffix('#', $loop.it.id))"></link>
15          <pubDate :text="$loop.it.id.parseDate().formatHTTP()"></pubDate>
16          <guid :text="$site.host_url.addPath($page.link().suffix('#', $loop.it.id))"></guid>
17        </item>
18      </ctx>
19    </ctx>
20  </channel>
21</rss>