🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit ca39007d14ffa3f3b0a653382ed0c3e9d35ff101
Parent: d75a1ede4dcf34c7022b621afe3e9d238807e20a
Author: mcol <mcol@posteo.net>
Date: 2021-09-19 21:53:31 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-19 21:53:31 +0100

Add host config and template variable

src/Repositories.hs Modified

@@ -57,6 +57,3 @@
     case e of
         Right contents -> return $ Just contents
         Left err -> return Nothing
-
--- Variables:
---host = "http://localhost"

src/Config.hs Modified

@@ -14,6 +14,7 @@
     { repoPaths :: [FilePath]
     , templateDirectory :: FilePath
     , outputDirectory :: FilePath
+    , host :: FilePath
     }
     deriving (Generic, Show)
 

config.dhall Modified

@@ -14,6 +14,7 @@
     { repoPaths = folders
     , templateDirectory = "./templates"
     , outputDirectory = "./output"
+    , host = "http://localhost"
     }
 
 in config