mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
pagination - fix extension
This commit is contained in:
parent
e0e4155e89
commit
b1f6cfb2c9
1 changed files with 3 additions and 3 deletions
|
|
@ -127,9 +127,9 @@ class Writer(object):
|
|||
paginated_localcontext.update({'%s_paginator' % key: paginator,
|
||||
'%s_page' % key: page})
|
||||
if page_num > 0:
|
||||
# FIXME file extension
|
||||
paginated_name = paginated_name.replace('.html',
|
||||
'%s.html' % (page_num+1))
|
||||
ext = '.' + paginated_name.rsplit('.')[-1]
|
||||
paginated_name = paginated_name.replace(ext,
|
||||
'%s%s' % (page_num + 1, ext))
|
||||
|
||||
_write_file(template, paginated_localcontext, self.output_path,
|
||||
paginated_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue