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 @@ {{title}} https://raymon.dev/posts/{{localpath}}.html https://raymon.dev/posts/{{localpath}}.html - - - - - {{content}} - {{date}} + diff --git a/client/templates/posts.xml b/client/templates/posts.xml index e7bf2ba..057f7de 100644 --- a/client/templates/posts.xml +++ b/client/templates/posts.xml @@ -1,12 +1,11 @@ - - Posts - https://raymon.dev + Raymon Zutekouw Personal blog en-us - + https://raymon.dev + {{items}}