Improve formatting in RSS feed, to make it valid
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user