From 81cd85997b53c255f3d7b5c88676e2c6a72b9d29 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Tue, 23 Jul 2019 09:01:31 -0700 Subject: [PATCH] Add leading /s in prerenderrc generator. --- generator/src/Main.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/src/Main.elm b/generator/src/Main.elm index e8fd7221..f7ca7a90 100644 --- a/generator/src/Main.elm +++ b/generator/src/Main.elm @@ -33,6 +33,7 @@ prerenderRcFormattedPath pageOrPost = |> dropIndexFromLast |> List.drop 1 |> String.join "/" + |> (\path -> "/" ++ path) dropIndexFromLast : List String -> List String @@ -56,7 +57,7 @@ preRenderRc extras = |> List.map prerenderRcFormattedPath |> List.map (\path -> String.concat [ "\"", path, "\"" ]) |> String.join ", " - |> (\paths -> String.concat [ "[", paths, "]" ]) + |> (\paths -> String.concat [ "[", paths, "]\n" ]) pathFor : PageOrPost -> String