Mercurial > piecrust2
diff piecrust/appconfigdefaults.py @ 979:45ad976712ec
tests: Big push to get the tests to pass again.
- Lots of fixes everywhere in the code.
- Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now.
- Replace all `.md` test files with `.html` since now a auto-format extension always sets the format.
- Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 Oct 2017 22:51:57 -0700 |
parents | 504ddb370df8 |
children | c8fb7b024faa |
line wrap: on
line diff
--- a/piecrust/appconfigdefaults.py Sun Oct 29 22:46:41 2017 -0700 +++ b/piecrust/appconfigdefaults.py Sun Oct 29 22:51:57 2017 -0700 @@ -189,6 +189,7 @@ data_endpoint = 'blog' item_name = 'post' tpl_func_prefix = 'pc' + year_archive_tpl = '_year.html' if theme_site: # If this is a theme site, show posts from a `sample` directory @@ -208,6 +209,7 @@ (site_values, '%s/func_prefix' % blog_name), (values, '%s/func_prefix' % blog_name), default=('pc%s' % blog_name)) + year_archive_tpl = '%s_year.html,_year.html' % page_prefix # Figure out the settings values for this blog, specifically. # The value could be set on the blog config itself, globally, or left at @@ -224,7 +226,6 @@ default_layout = blog_values['default_post_layout'] post_url = '/' + url_prefix + blog_values['post_url'].lstrip('/') year_url = '/' + url_prefix + blog_values['year_url'].lstrip('/') - year_archive_tpl = '%s_year.html' % page_prefix cfg = collections.OrderedDict({ 'site': collections.OrderedDict({