Improve formatting in RSS feed, to make it valid

This commit is contained in:
Raymon Zutekouw
2021-11-23 12:06:02 +01:00
parent 6ed757b81b
commit 266b6e0733
3 changed files with 11 additions and 12 deletions
+5
View File
@@ -116,7 +116,12 @@ post_contents
|> File.close()
end)
stripForRSS = fn content -> content
|> String.replace("\n", "")
end
post_feed = post_contents
|> Enum.map(fn m -> Map.update!(m, :content, stripForRSS) end)
|> Enum.sort_by(fn m -> Map.get(m, :date) end)
|> Enum.reverse()
|> Enum.map(fill_template_pretemplated.(post_feed_item_template))