made post list build target use the default template instead of just doing the post list
This commit is contained in:
parent
2ed5eda5e2
commit
a80c5f10bc
1 changed files with 4 additions and 1 deletions
|
@ -149,7 +149,10 @@ postList =
|
|||
outputDir </> "posts/index.html" %> \target -> do
|
||||
postPaths <- Shake.getDirectoryFiles "" postGlobs
|
||||
posts <- sortOn (Ord.Down . postDate) <$> forM postPaths readPost
|
||||
applyTemplateAndWrite "posts.html" (HM.singleton "posts" posts) target
|
||||
html <- applyTemplate "posts.html" $ HM.singleton "posts" posts
|
||||
let page = Page (T.pack "Blog Posts") html
|
||||
applyTemplateAndWrite "default.html" page target
|
||||
Shake.putInfo $ "Built " <> target
|
||||
|
||||
rss :: Rules ()
|
||||
rss =
|
||||
|
|
Loading…
Reference in a new issue