diff --git a/client/gen.exs b/client/gen.exs index 700dcc0..116224e 100644 --- a/client/gen.exs +++ b/client/gen.exs @@ -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)) diff --git a/client/templates/post_item.xml b/client/templates/post_item.xml index 9a65398..3d9c42e 100644 --- a/client/templates/post_item.xml +++ b/client/templates/post_item.xml @@ -2,13 +2,8 @@