# Defaults to ['index', 'categories', 'authors', 'archives']
DIRECT_TEMPLATES = ['archives']
- # Defaults to ['index']
- PAGINATED_DIRECT_TEMPLATES = ['archives']
+ # Defaults to {'index': None, 'tag': None, 'category': None, 'author': None}
+ PAGINATED_TEMPLATES = {'archives': None, 'tag': None, 'category': None, 'author': None}
.. note-warning::
[(1, 'index.html', '{name}.html'),
(2, 'index{number}.html', '{name}{number}.html')],
'DIRECT_TEMPLATES': ['index', 'archives'],
- 'PAGINATED_DIRECT_TEMPLATES': ['index', 'archives'],
+ 'PAGINATED_TEMPLATES': {'index': None, 'archives': None, 'tag': None, 'category': None, 'author': None},
# verify that og:url doesn't take pagination into account
'M_DISABLE_SOCIAL_META_TAGS': False
def test(self):
self.run_pelican({
'DEFAULT_PAGINATION': 1,
- 'PAGINATED_DIRECT_TEMPLATES': []
+ 'PAGINATED_TEMPLATES': {'tag': None, 'category': None, 'author': None}
})
# Nothing is paginated
[(1, 'index.html?and&in&url=""', '{name}.html'),
(2, 'index{number}.html?and&in&url=""', '{name}{number}.html')],
'DIRECT_TEMPLATES': ['index', 'archives'],
- 'PAGINATED_DIRECT_TEMPLATES': ['index', 'archives'],
+ 'PAGINATED_TEMPLATES': {'index': None, 'archives': None, 'tag': None, 'category': None, 'author': None},
'FORMATTED_FIELDS': ['summary', 'description']
})