posts: add diagram for shared Guix profiles and store
[software/elephly-net.git] / site.hs
diff --git a/site.hs b/site.hs
index 96bfdfd..f854817 100644 (file)
--- a/site.hs
+++ b/site.hs
@@ -11,7 +11,7 @@ import           Text.Pandoc.Options
 config :: Configuration
 config = defaultConfiguration
   { deployCommand =
-      "rsync -Havz _site/ rekado@elephly.net:/srv/disk1/rekado/elephly.net" }
+      "rsync -Havz _site/ rekado@elephly.net:/home/rekado/elephly.net" }
 
 myFeedConfiguration :: FeedConfiguration
 myFeedConfiguration = FeedConfiguration
@@ -27,24 +27,26 @@ main :: IO ()
 main = hakyllWith config $ do
     tags <- buildTags "posts/*.markdown" (fromCapture "tags/*.html")
 
-    match "css/*" $ do
-        route   idRoute
-        compile compressCssCompiler
-
     match (    "js/libs/*"
           .||. "js/hyphenator/*"
           .||. "js/hyphenator/patterns/*"
           .||. "js/*"
+          .||. "css/*.woff"
           .||. "downies/*"
           .||. "downies/music/*"
           .||. "images/*"
           .||. "images/posts/*"
           .||. "images/posts/*/*"
           .||. "favicon.ico"
+          .||. "rekado.pubkey"
           ) $ do
       route   idRoute
       compile copyFileCompiler
 
+    match "css/*" $ do
+        route   idRoute
+        compile compressCssCompiler
+
     -- place static markdown files in site root
     match ( "static/*.markdown" .||. "static/*/*.markdown" ) $ do
       route   $ setExtension "html"
@@ -95,7 +97,7 @@ main = hakyllWith config $ do
     create ["atom.xml"] $ postFeed renderAtom
 
     -- always show the most recent blog post
-    create ["index.html"] $ do
+    create ["posts/latest.html"] $ do
       route idRoute
       compile $ do
         mostRecent <- fmap head . recentFirst =<< loadAllSnapshots "posts/*.markdown" "non-relative"