Mercurial > piecrust2
diff piecrust/sources/fs.py @ 855:448710d84121
refactor: Get the taxonomy support back to a functional state.
There's now a taxonomy content source that wraps another normal content source
like a blog posts' source. It works in tandem with a taxonomy content pipeline
that will do the heavy lifting of figuring out what kind of terms exist and
need to be baked.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 06 Jun 2017 00:26:21 -0700 |
parents | 08e02c2a2a1a |
children | fddaf43424e2 |
line wrap: on
line diff
--- a/piecrust/sources/fs.py Sun Jun 04 23:34:28 2017 -0700 +++ b/piecrust/sources/fs.py Tue Jun 06 00:26:21 2017 -0700 @@ -34,6 +34,12 @@ self.fs_endpoint = config.get('fs_endpoint', name) self.fs_endpoint_path = os.path.join(self.root_dir, self.fs_endpoint) + @property + def root_dir(self): + if self.is_theme_source: + return self.app.theme_dir + return self.app.root_dir + def _checkFSEndpoint(self): if not os.path.isdir(self.fs_endpoint_path): if self.config.get('ignore_missing_dir'):