comparison piecrust/app.py @ 26:3701daa97927

Use the same defaults as in PieCrust 1.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 19 Aug 2014 11:22:29 -0700
parents f5ca5c5bed85
children 8c15fc45d712
comparison
equal deleted inserted replaced
25:65ae19c4e8a3 26:3701daa97927
161 # them from simple blog settings. 161 # them from simple blog settings.
162 if 'sources' not in sitec: 162 if 'sources' not in sitec:
163 posts_fs = sitec.setdefault('posts_fs', DEFAULT_POSTS_FS) 163 posts_fs = sitec.setdefault('posts_fs', DEFAULT_POSTS_FS)
164 blogsc = sitec.setdefault('blogs', ['posts']) 164 blogsc = sitec.setdefault('blogs', ['posts'])
165 165
166 g_post_url = sitec.get('post_url', '%year%/%month%/%slug%') 166 g_post_url = sitec.get('post_url', '%year%/%month%/%day%/%slug%')
167 g_tag_url = sitec.get('tag_url', 'tag/%tag%') 167 g_tag_url = sitec.get('tag_url', 'tag/%tag%')
168 g_category_url = sitec.get('category_url', '%category%') 168 g_category_url = sitec.get('category_url', '%category%')
169 g_posts_per_page = sitec.get('items_per_page', 5) 169 g_posts_per_page = sitec.get('items_per_page', 5)
170 g_posts_filters = sitec.get('items_filters') 170 g_posts_filters = sitec.get('items_filters')
171 g_date_format = sitec.get('date_format', DEFAULT_DATE_FORMAT) 171 g_date_format = sitec.get('date_format', DEFAULT_DATE_FORMAT)