Mercurial > piecrust2
diff piecrust/sources/posts.py @ 36:485682a6de50
New site layout support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 20 Aug 2014 23:16:51 -0700 |
parents | 617191dec18e |
children | a46354306738 |
line wrap: on
line diff
--- a/piecrust/sources/posts.py Wed Aug 20 21:46:27 2014 -0700 +++ b/piecrust/sources/posts.py Wed Aug 20 23:16:51 2014 -0700 @@ -4,7 +4,6 @@ import glob import logging import datetime -from piecrust import CONTENT_DIR from piecrust.sources.base import (PageSource, IPreparingSource, SimplePaginationSourceMixin, PageNotFoundError, InvalidFileSystemEndpointError, @@ -20,7 +19,7 @@ def __init__(self, app, name, config): super(PostsSource, self).__init__(app, name, config) self.fs_endpoint = config.get('fs_endpoint', name) - self.fs_endpoint_path = os.path.join(self.root_dir, CONTENT_DIR, self.fs_endpoint) + self.fs_endpoint_path = os.path.join(self.root_dir, self.fs_endpoint) self.supported_extensions = list(app.config.get('site/auto_formats').keys()) self.default_auto_format = app.config.get('site/default_auto_format')