summaryrefslogtreecommitdiff
path: root/site.hs
diff options
context:
space:
mode:
authorCarlos Sosa <gnusosa@gnusosa.net>2019-08-15 22:14:36 -0700
committerCarlos Sosa <gnusosa@gnusosa.net>2019-08-15 22:14:36 -0700
commit4d5b4abd88551c97d434c25220660e5931fce75a (patch)
tree36772c5b3439caec0b43a4fd586a4558b5a92cea /site.hs
parentb0098326cddad2437f9d4b2f30af6568acc5ca54 (diff)
Add gsoc matcher and Pandoc syntax highlighting CSS file
Diffstat (limited to 'site.hs')
-rw-r--r--site.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/site.hs b/site.hs
index 3148518..6cd7c52 100644
--- a/site.hs
+++ b/site.hs
@@ -29,6 +29,12 @@ main = hakyll $ do
>>= loadAndApplyTemplate "templates/post.html" archiveCtx
>>= relativizeUrls
+ match "gsoc/*.org" $ do
+ route $ setExtension "html"
+ compile $ pandocCompiler
+ >>= loadAndApplyTemplate "templates/post.html" postCtx
+ >>= relativizeUrls
+
match "article/**" $ do
route idRoute
compile getResourceBody