Current section
Files
Jump to
Current section
Files
priv/build_resources/rss.xml.eex
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><%= "Alek�ei Matiu�hkin" %></title>
<link><%= Path.join(Map.fetch!(bindings, :server_root), "/rss.xml") %></link>
<description><%= Map.fetch!(bindings, :description) %></description>
<lastBuildDate><%= transformer.(DateTime.utc_now()) %></lastBuildDate>
<atom:link href="<%= Path.join(Map.fetch!(bindings, :server_root), "/rss.xml") %>" rel="self" type="application/rss+xml" />
<%= for post <- posts do %>
<item>
<link><%= Path.join(Map.fetch!(bindings, :server_root), post.url) %></link>
<guid><%= Path.join(Map.fetch!(bindings, :server_root), post.url) %></guid>
<title><%= String.replace(post.title, "&", "and") %></title>
<description><%= String.replace(post.preview, "&", "and") %></description>
</item>
<% end %>
<%= for _page <- pages do %><item>
<% end %>
</channel>
</rss>