This commit is contained in:
2025-12-24 11:09:56 +08:00
parent b06666ac63
commit 8887026eb9
7 changed files with 46 additions and 30 deletions

View File

@@ -61,17 +61,19 @@ main = hakyll $ do
match "index.md" $ do
route $ setExtension "html"
compile $
compile $ do
tocCtx <- getTocCtx defaultContext
chaoDocCompiler
>>= loadAndApplyTemplate "templates/index.html" (defaultContext `mappend` constField "root" root)
>>= loadAndApplyTemplate "templates/index.html" (tocCtx `mappend` constField "root" root)
>>= relativizeUrls
>>= cleanIndexHtmls
match ( fromList["talks.md","invited_speaker.md","registration.md","program.md","venue.md","travel.md","social_event.md","travel_support.md","contact.md"] ) $ do
match ( fromList["talks.md","invited_speaker.md","registration.md","program.md","venue.md","travel.md","social_event.md","contact.md"] ) $ do
route cleanRoute
compile $
compile $ do
tocCtx <- getTocCtx defaultContext
chaoDocCompiler
>>= loadAndApplyTemplate "templates/standalone.html" (defaultContext `mappend` constField "root" root)
>>= loadAndApplyTemplate "templates/standalone.html" (tocCtx `mappend` constField "root" root)
>>= relativizeUrls
-- -- build up tags