chore(hakyll): update haskell
This commit is contained in:
parent
834b3ec421
commit
bcc1e1bbd1
|
@ -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 {
|
||||||
|
|
22
site.hs
22
site.hs
|
@ -1,11 +1,11 @@
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
import Data.Monoid (mappend)
|
import Control.Monad (forM_, liftM)
|
||||||
import Data.List (sortBy)
|
import Data.List (sortBy)
|
||||||
import Data.Ord (comparing)
|
import Data.Monoid (mappend)
|
||||||
|
import Data.Ord (comparing)
|
||||||
import Hakyll
|
import Hakyll
|
||||||
import Control.Monad (liftM, forM_)
|
import System.FilePath (takeBaseName)
|
||||||
import System.FilePath (takeBaseName)
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
|
@ -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"
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue