Commit 4d164eaf5f88344562b09defd16c2b532c36bae5 Parent: 4045eeb02bebe2834c13673963d1fb747fb25d2e Author: mcol <mcol@posteo.net> Date: 2021-10-04 23:00:50 +0100 Committer: mcol <mcol@posteo.net> Committed: 2021-10-04 23:01:05 +0100 Fix template filter
src/Templates.hs Modified
@@ -117,17 +117,17 @@ where isTemplate' :: FilePath -> Bool isTemplate' p = - not (isScoped config p) && or (flip isSuffixOf p <$> ["html", "css", "js"]) + not (isTargeted config p) && or (flip isSuffixOf p <$> ["html", "css", "js"]) {- This is used to filter files in the template directory to exclude those specified by the config settings ``indexTemplate``, ``commitTemplate`` or ``fileTemplate``. -} -isScoped :: Config -> FilePath -> Bool -isScoped config path = - path /= indexTemplate config && - path /= commitTemplate config && - path /= fileTemplate config +isTargeted :: Config -> FilePath -> Bool +isTargeted config path = + path == indexTemplate config || + path == commitTemplate config || + path == fileTemplate config {- This wraps getDirectoryContents so that we get a list of fully qualified paths of the
README.rst Modified
@@ -41,4 +41,3 @@ [ ] Output something useful for git submodules [ ] Generate RSS? [ ] Write guide in readme -[ ] Remove targeted templates from general output