diff options
| author | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-22 13:09:02 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-22 13:09:02 +0200 |
| commit | 2c792ff967cccb359ad986d7879107b5ad2c0733 (patch) | |
| tree | 2c17900e696ff41bd97a9b763e529c96890ea017 | |
| parent | 2ea84315db882c3341ae25f0fe2591a2de109d49 (diff) | |
| download | reploy-2c792ff967cccb359ad986d7879107b5ad2c0733.tar.gz reploy-2c792ff967cccb359ad986d7879107b5ad2c0733.tar.bz2 | |
fix the path splitting issue for directory exclusion
| -rw-r--r-- | site.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ isSourceablePath :: FilePath -> Site Bool isSourceablePath fp = do notSource <- use notSourceDirs pure $ (&&) <$> hasSuffix ".md" . last <*> not . any (`elem` notSource) . init $ - splitPath fp + splitDirectories fp -- | Load the pages from a directory and add them to `pages`. sourcePages :: FilePath -> Site () |
