mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 23:06:10 +03:00
Add leading /s in prerenderrc generator.
This commit is contained in:
parent
12c9af08dc
commit
81cd85997b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user