Verified Commit 8e403d18 authored by doshitan's avatar doshitan

Include project pages in search

Just an oversight when setting up the content to be included in search
data creation.
parent ebba997a
......@@ -30,6 +30,9 @@ redirects =
, ("F4C18825.txt", "9963DB09FD2A2622CC46FF0320160260F4C18825.txt")
]
allContentPattern :: Pattern
allContentPattern = ("posts/*" .||. "pages/**" .||. "projects/*") .&&. hasNoVersion .&&. complement "**.metadata"
main :: IO ()
main = do
hakyllConf <- getHakyllConf
......@@ -178,7 +181,7 @@ main = do
>>= loadAndApplyTemplate "templates/project.html" projectCtx
>>= loadAndApplyTemplate "templates/default.html" baseCtx
match (("posts/*" .||. "pages/**") .&&. hasNoVersion .&&. complement "**.metadata") $ do
match allContentPattern $ do
version "toc" $ compile tocPandocCompiler
version "plain" $ compile plainPandocCompiler
......@@ -208,7 +211,7 @@ main = do
create ["search/data.json"] $ do
route idRoute
compile $ do
allItems <- loadAll (("posts/*" .||. "pages/**") .&&. hasNoVersion .&&. complement "**.metadata") :: Compiler [Item String]
allItems <- loadAll allContentPattern :: Compiler [Item String]
let allItemIds = fmap itemIdentifier allItems
allItemsData <- forM allItemIds $
\ident -> do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment