Mercurial > piecrust2
comparison piecrust/app.py @ 84:b3ce11b2cf36
Don't complain about missing `pages` or `posts` directories by default.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 03 Sep 2014 17:26:38 -0700 |
parents | fdb08d986384 |
children | 2fb6501ed668 |
comparison
equal
deleted
inserted
replaced
82:ae90caf26224 | 84:b3ce11b2cf36 |
---|---|
180 g_date_format = sitec.get('date_format', DEFAULT_DATE_FORMAT) | 180 g_date_format = sitec.get('date_format', DEFAULT_DATE_FORMAT) |
181 | 181 |
182 sourcesc = {} | 182 sourcesc = {} |
183 sourcesc['pages'] = { | 183 sourcesc['pages'] = { |
184 'type': 'default', | 184 'type': 'default', |
185 'data_endpoint': 'site/pages', | 185 'ignore_missing_dir': True, |
186 'data_endpoint': 'site.pages', | |
186 'item_name': 'page'} | 187 'item_name': 'page'} |
187 sitec['sources'] = sourcesc | 188 sitec['sources'] = sourcesc |
188 | 189 |
189 routesc = [] | 190 routesc = [] |
190 routesc.append({ | 191 routesc.append({ |
214 endpoint = 'posts' | 215 endpoint = 'posts' |
215 item_name = 'post' | 216 item_name = 'post' |
216 sourcesc[blog_name] = { | 217 sourcesc[blog_name] = { |
217 'type': 'posts/%s' % posts_fs, | 218 'type': 'posts/%s' % posts_fs, |
218 'fs_endpoint': endpoint, | 219 'fs_endpoint': endpoint, |
220 'ignore_missing_dir': True, | |
219 'data_type': 'blog', | 221 'data_type': 'blog', |
220 'item_name': item_name, | 222 'item_name': item_name, |
221 'items_per_page': items_per_page, | 223 'items_per_page': items_per_page, |
222 'items_filters': items_filters, | 224 'items_filters': items_filters, |
223 'date_format': date_format, | 225 'date_format': date_format, |