<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Operand Chronicle</title>
    <description>produced by Calliope Youngblood in DC, USA.</description>
    <link>https://operand.online/</link>
    <lastBuildDate><%= pub_date(@pages) %></lastBuildDate>
    <pubDate><%= pub_date(@pages) %></pubDate>
    <ttl>1800</ttl>
    <atom:link href="https://operand.online/rss" rel="self" type="application/rss+xml"/>

    <%= for page <- @pages do %>
      <item>
        <title><%= page.name %></title>
        <description><![CDATA[
          <% if page.summary do %>
            <blockquote><%= page.summary |> Render.embed %></blockquote>
          <% end %>
          <hr/>

          <%= page.body |> Render.embed %>
        ]]></description>
        <link><%= "https://operand.online/chronicle/#{page.name}" %></link>
        <guid isPermaLink="false"><%= page.day %>.<%= page.name %></guid>
        <pubDate><%= pub_date(page) %></pubDate>
      </item>
    <% end %>
  </channel>
</rss>
