Demote headers to avoid first-level as <h1>
This commit is contained in:
parent
aa841f4ba2
commit
02f4a537bd
13 changed files with 222 additions and 220 deletions
2
site.hs
2
site.hs
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue