fix the path splitting issue for directory exclusion
This commit is contained in:
parent
2ea84315db
commit
2c792ff967
2
site.hs
2
site.hs
|
@ -56,7 +56,7 @@ isSourceablePath :: FilePath -> Site Bool
|
||||||
isSourceablePath fp = do
|
isSourceablePath fp = do
|
||||||
notSource <- use notSourceDirs
|
notSource <- use notSourceDirs
|
||||||
pure $ (&&) <$> hasSuffix ".md" . last <*> not . any (`elem` notSource) . init $
|
pure $ (&&) <$> hasSuffix ".md" . last <*> not . any (`elem` notSource) . init $
|
||||||
splitPath fp
|
splitDirectories fp
|
||||||
|
|
||||||
-- | Load the pages from a directory and add them to `pages`.
|
-- | Load the pages from a directory and add them to `pages`.
|
||||||
sourcePages :: FilePath -> Site ()
|
sourcePages :: FilePath -> Site ()
|
||||||
|
|
Loading…
Reference in a new issue