Moved pages/home.markdown to pages/index.markdown
This removes a special case when generating the pages. Namely having to change the route of "pages/home.markdown" to "pages/index.markdown" before being converted to its final route of "/index.html". Note: Because "pages/home.markdown" was renamed, its template "templates/pages/home.html" has also been renamed to "templates/pages/index.html". Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
parent
316ac7fd2d
commit
a4b3d3d35e
|
@ -187,10 +187,7 @@ main = do
|
|||
-- Generate tag pages
|
||||
paginateTagsRules "tags" tags
|
||||
|
||||
let navgenRoute = customRoute (\r -> if toFilePath r == "pages/home.markdown"
|
||||
then "pages/index.markdown"
|
||||
else toFilePath r) `composeRoutes`
|
||||
gsubRoute "pages/" (const "") `composeRoutes`
|
||||
let navgenRoute = gsubRoute "pages/" (const "") `composeRoutes`
|
||||
setExtension "html"
|
||||
|
||||
match "pages/*" $ version "nav-gen" $ do
|
||||
|
|
Loading…
Reference in New Issue