Skip to content

Commit

Permalink
cleaner match
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasBora committed Oct 8, 2024
1 parent 2e0c431 commit 320b090
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,7 @@ main = do
sassCompiler >>=
return . fmap compressCss

-- All markdown/org-mode files are converted using pandoc
match (fromGlob "**/*.org" .||. fromGlob "**/*.md") $ do
route $ setExtension "html"
compile $ pandocMathCompiler
>>= loadAndApplyTemplate "templates/default.html" customDefaultContext
>>= relativizeUrls

match (fromGlob "*.org" .||. fromGlob "*.md") $ do
match (fromGlob "**.org" .||. fromGlob "**.md") $ do
route $ setExtension "html"
compile $ pandocMathCompiler
>>= loadAndApplyTemplate "templates/default.html" customDefaultContext
Expand Down

0 comments on commit 320b090

Please sign in to comment.