Skip to content
Snippets Groups Projects
Commit 166f86d6 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

trying to see if twitter can be nice

parent 06065bf6
No related branches found
No related tags found
No related merge requests found
Pipeline #12609 passed
......@@ -169,6 +169,13 @@ main = hakyllWith config $ do
>>= loadAndApplyTemplate "templates/archive.html" (pagesCtx posts "Bachelor projects")
>>= relativizeUrls
-- Render some static pages
match (fromList staticPages) $ do
route $ setExtension ".html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/page.html" postCtx
>>= relativizeUrls
-- Index
match "index.html" $ do
route idRoute
......@@ -187,6 +194,19 @@ main = hakyllWith config $ do
-- Read templates
match "templates/*" $ compile templateCompiler
where
staticPages =
[ "pages/contact.md"
]
-- Used to compile to PDF
-- where
-- writeXeTex :: Item Pandoc.Pandoc -> Compiler (Item String)
-- writeXeTex = traverse $ \pandoc ->
-- case Pandoc.runPure (Pandoc.writeLaTeX Pandoc.def pandoc) of
-- Left err -> fail $ show err
-- Right x -> return (T.unpack x)
--------------------------------------------------------------------
-- Contexts
--------------------------------------------------------------------
......
This diff is collapsed.
......@@ -30,5 +30,6 @@
<script src="/js/jquery.js"></script>
<script src="/js/bootstrap.js"></script>
<script src="/js/holder.js"></script>
<script src="/js/widgets.js" charset="utf-8"></script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment