forked from github/pelican
Merge branch 'master' of github.com:getpelican/pelican
This commit is contained in:
commit
822c63cbd7
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ class URLWrapper(object):
|
|||
return value
|
||||
else:
|
||||
if get_page_name:
|
||||
return unicode(value[:value.find('{slug}') + len('{slug}')]).format(**self.as_dict())
|
||||
return unicode(os.path.splitext(value)[0]).format(**self.as_dict())
|
||||
else:
|
||||
return unicode(value).format(**self.as_dict())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue