diff options
| author | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-22 11:43:20 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-22 11:43:20 +0200 |
| commit | c86ece1433da3e8a85d84233f236a7d3b7945534 (patch) | |
| tree | 3952c8dd394a50a0245b4fa9fa058f2678fae87c /Types.hs | |
| parent | 73d1920b6296bf73fbef87c9e8460cd5d2c2071e (diff) | |
| download | reploy-c86ece1433da3e8a85d84233f236a7d3b7945534.tar.gz reploy-c86ece1433da3e8a85d84233f236a7d3b7945534.tar.bz2 | |
implement sourcing of timestamp files
Diffstat (limited to 'Types.hs')
| -rw-r--r-- | Types.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -58,6 +58,7 @@ data SiteState = , _redirectTemplate :: FilePath -- ^ Name of the template for redirect pages , _tagTemplate :: FilePath -- ^ Name of the template for category pages , _listTemplate :: FilePath -- ^ Name of the template for listing pages + , _timestampSuffix :: FilePath -- ^ File to search for a timestamp (e.g., if the prefix is ".ts", a timestamp for file "page.md" will be looked for in "page.md.ts"). These are best autogenerated with a script that sources the data from git or so. , _urlBase :: FilePath -- ^ "Root route" to prepend to all absolute links. , _dumpFinalState :: Bool -- ^ Triggers printing out the structure when the processing finishes. } @@ -128,6 +129,10 @@ siteOptions' = do strOption $ long "url-base" <> short 'u' <> help "Base absolute URL" <> value "/" <> showDefault + _timestampSuffix <- + strOption $ + long "timestamp-prefix" <> + help "Timestamp file suffix for markdowns" <> value ".timestamp" <> showDefault _dumpFinalState <- switch $ long "dump-state" <> |
