Demote headers to avoid first-level as <h1>

This commit is contained in:
Dimitri Lozeve 2020-05-26 17:21:53 +02:00
parent aa841f4ba2
commit 02f4a537bd
13 changed files with 222 additions and 220 deletions

View file

@ -41,6 +41,7 @@ main = hakyll $ do
match "posts/*" $ do
route $ setExtension "html"
compile $ customPandocCompiler
>>= return . fmap demoteHeaders
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= saveSnapshot "content"
>>= loadAndApplyTemplate "templates/default.html" postCtx
@ -56,6 +57,7 @@ main = hakyll $ do
match (fromList ["contact.org", "cv.org", "skills.org", "projects.org"]) $ do
route $ setExtension "html"
compile $ customPandocCompiler
>>= return . fmap demoteHeaders
>>= loadAndApplyTemplate "templates/default.html" defaultContext
>>= relativizeUrls