home73k/lib/home73k_web/templates/feed/rss.xml.eex

23 lines
1.4 KiB
Elixir
Raw Normal View History

2021-04-06 18:13:57 -04:00
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>73k Blog - Adam Piontek</title>
<link><%= Routes.blog_url(@conn, :index) %></link>
<atom:link href="<%= Routes.feed_url(@conn, :rss) %>" rel="self" type="application/rss+xml" />
<description>Blog by Adam Piontek. Desktop Systems Engineer. Human. Casual anthropologist, cautious DIYer, cuckoo leftist, cat papa.</description>
<language>en</language>
<copyright>Copyright <%= DateTime.utc_now.year %> Adam Piontek</copyright>
<lastBuildDate><%= @last_build_date |> to_rfc822 %></lastBuildDate>
<category>Personal/Political/Society/Technology/IT/Internet/Web development</category>
<ttl>60</ttl><%= for post <- @posts do %>
<item>
2021-04-06 18:21:38 -04:00
<title><%= post.title |> String.replace(" & ", " &amp; ") %></title>
2021-04-06 18:13:57 -04:00
<link><%= Routes.blog_url(@conn, :show, post) %></link>
<guid><%= Routes.blog_url(@conn, :show, post) %></guid>
2021-04-06 18:21:38 -04:00
<description><![CDATA[ <%= post.lede |> String.replace("href=\"/", "href=\"#{Routes.home_url(@conn, :index)}") %> ]]></description>
2021-04-06 18:13:57 -04:00
<category><%= post.tags |> List.first() %></category>
<pubDate><%= post.date |> to_rfc822 %></pubDate>
<source url="<%= Routes.feed_url(@conn, :rss) %>">73k Blog - Adam Piontek</source>
</item><% end %>
</channel>
</rss>