Start replacing the profile

This commit is contained in:
2023-04-27 21:53:31 +03:00
parent 06f95f0aa6
commit bb00c393a4
4 changed files with 128 additions and 51 deletions

View File

@ -50,7 +50,12 @@ main = hakyllWith defaultConfiguration{ignoreFile = ignore} $ do
>>= relativizeUrls
match (fromList ["index.markdown", "contact.markdown"]) $ do
match "profile.html" $ do
route $ constRoute "index.html"
compile $ getResourceBody
>>= loadAndApplyTemplate "templates/default.html" defaultContext
>>= relativizeUrls
match (fromList ["contact.markdown"]) $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext