fixing feed validation issues

This commit is contained in:
Adam Piontek 2021-04-06 18:21:38 -04:00
parent 7f783b916d
commit e2fd00f043

View file

@ -11,10 +11,10 @@
<category>Personal/Political/Society/Technology/IT/Internet/Web development</category>
<ttl>60</ttl><%= for post <- @posts do %>
<item>
<title><%= post.title %></title>
<title><%= post.title |> String.replace(" & ", " &amp; ") %></title>
<link><%= Routes.blog_url(@conn, :show, post) %></link>
<guid><%= Routes.blog_url(@conn, :show, post) %></guid>
<description><![CDATA[ <%= post.lede %> ]]></description>
<description><![CDATA[ <%= post.lede |> String.replace("href=\"/", "href=\"#{Routes.home_url(@conn, :index)}") %> ]]></description>
<category><%= post.tags |> List.first() %></category>
<pubDate><%= post.date |> to_rfc822 %></pubDate>
<source url="<%= Routes.feed_url(@conn, :rss) %>">73k Blog - Adam Piontek</source>