|
|
@ -124,10 +124,9 @@ stripForRSS = fn content -> content |
|
|
|
|> String.replace("\n", "") |
|
|
|
|> String.replace("\n", "") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
post_feed = post_contents |
|
|
|
post_feed = |
|
|
|
|
|
|
|
post_contents |
|
|
|
|> Enum.map(fn m -> Map.update!(m, :content, stripForRSS) end) |
|
|
|
|> 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)) |
|
|
|
|> Enum.map(fill_template_pretemplated.(post_feed_item_template)) |
|
|
|
|> Enum.join("\n") |
|
|
|
|> Enum.join("\n") |
|
|
|
|> (fn v -> %{items: v} end).() |
|
|
|
|> (fn v -> %{items: v} end).() |
|
|
|