mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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
|
return value
|
||||||
else:
|
else:
|
||||||
if get_page_name:
|
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:
|
else:
|
||||||
return unicode(value).format(**self.as_dict())
|
return unicode(value).format(**self.as_dict())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue