chore(hakyll): update haskell

This commit is contained in:
Fiscal Velvet Poet 2024-10-29 00:15:23 +10:00
parent 834b3ec421
commit bcc1e1bbd1
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47
3 changed files with 11 additions and 14 deletions

View file

@ -53,7 +53,7 @@ utils.lib.eachDefaultSystem (
installPhase = '' installPhase = ''
mkdir -p "$out/dist" mkdir -p "$out/dist"
cp -a dist/. "$out/dist" cp -a _site/. "$out/dist"
''; '';
}; };
in { in {

16
site.hs
View file

@ -1,10 +1,10 @@
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
import Data.Monoid (mappend) import Control.Monad (forM_, liftM)
import Data.List (sortBy) import Data.List (sortBy)
import Data.Monoid (mappend)
import Data.Ord (comparing) import Data.Ord (comparing)
import Hakyll import Hakyll
import Control.Monad (liftM, forM_)
import System.FilePath (takeBaseName) import System.FilePath (takeBaseName)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -42,10 +42,6 @@ main = hakyll $ do
tags <- buildTags "posts/*" (fromCapture "tags/*.html") tags <- buildTags "posts/*" (fromCapture "tags/*.html")
match "posts/*" $ version "meta" $ do
route $ setExtension "html"
compile getResourceBody
match "posts/*" $ do match "posts/*" $ do
route $ setExtension "html" route $ setExtension "html"
compile $ do compile $ do
@ -121,8 +117,8 @@ feedConfig = FeedConfiguration
{ feedTitle = "Skeleton Site" { feedTitle = "Skeleton Site"
, feedDescription = "you should set this feed description" , feedDescription = "you should set this feed description"
, feedAuthorName = "set this name" , feedAuthorName = "set this name"
, feedAuthorEmail = "kolectiva@reciproka.co" , feedAuthorEmail = "kolektivo@reciproka.net"
, feedRoot = "https://skeleton.reciproka.co" , feedRoot = "https://skeleton.reciproka.dev"
} }
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -131,7 +127,7 @@ siteCtx :: Context String
siteCtx = siteCtx =
baseCtx `mappend` baseCtx `mappend`
constField "site_description" "Skeleton Site" `mappend` constField "site_description" "Skeleton Site" `mappend`
constField "site-url" "https://skeleton.reciproka.co" `mappend` constField "site-url" "https://skeleton.reciproka.dev" `mappend`
constField "tagline" "you should set this tag line" `mappend` constField "tagline" "you should set this tag line" `mappend`
constField "site-title" "Skeleton Site" `mappend` constField "site-title" "Skeleton Site" `mappend`
constField "copy-year" "2024" `mappend` constField "copy-year" "2024" `mappend`
@ -139,7 +135,7 @@ siteCtx =
defaultContext defaultContext
baseCtx = baseCtx =
constField "baseurl" "https://skeleton.reciproka.co" constField "baseurl" "https://skeleton.reciproka.dev"
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View file

@ -8,5 +8,6 @@ executable site
build-depends: base == 4.* build-depends: base == 4.*
, hakyll == 4.16.* , hakyll == 4.16.*
, filepath == 1.5.* , filepath == 1.5.*
, pandoc
ghc-options: -threaded ghc-options: -threaded
default-language: Haskell2010 default-language: Haskell2010