Mercurial > piecrust2
diff piecrust/themes/base.py @ 989:8adc27285d93
bake: Big pass on bake performance.
- Reduce the amount of data passed between processes.
- Make inter-process data simple objects to make it easier to test with
alternatives to pickle.
- Make sources have the basic requirement to be able to find a content item
from an item spec (path).
- Make Hoedown the default Markdown formatter.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 19 Nov 2017 14:29:17 -0800 |
parents | 14cca285f73b |
children | 40a40305c4e1 |
line wrap: on
line diff
--- a/piecrust/themes/base.py Fri Nov 03 23:14:56 2017 -0700 +++ b/piecrust/themes/base.py Sun Nov 19 14:29:17 2017 -0800 @@ -26,6 +26,8 @@ config_path = os.path.join(self.root_dir, CONFIG_PATH) with open(config_path, 'r', encoding='utf8') as fp: config = yaml.load(fp.read()) + if not config: + return None site_config = config.get('site', {}) theme = site_config.get('theme', None) if theme is None: