Also copy image files over

这个提交包含在:
Niels G. W. Serup 2024-10-05 15:58:55 +02:00
父节点 7e23b55513
当前提交 47d086c115
找不到此签名对应的密钥
GPG 密钥 ID: 38EEEBCE67324F19

查看文件

@ -3,6 +3,7 @@ module SiteGenerator (generateSite) where
import Types import Types
import DependencyGenerator import DependencyGenerator
import Control.Monad (forM_)
import Data.Text (Text) import Data.Text (Text)
thumbnailImageFilename :: Token FilePath -> DepGenM' FilePath thumbnailImageFilename :: Token FilePath -> DepGenM' FilePath
@ -67,3 +68,9 @@ generateSite = do
saveFile html $ joinPaths aboutDir indexName saveFile html $ joinPaths aboutDir indexName
styleName <- inject "style.css" styleName <- inject "style.css"
copyFile styleName (joinPaths outputDir styleName) copyFile styleName (joinPaths outputDir styleName)
imgName <- inject "img"
imgPathOut <- joinPaths outputDir imgName
makeDir imgPathOut
forM_ ["mad-icon.png", "mad-logo.png"] $ \name -> do
val <- inject name
copyFile (joinPaths imgName val) (joinPaths imgPathOut val)