1
0
Fork 0
forked from github/pelican

Merge branch 'master' of github.com:getpelican/pelican

This commit is contained in:
Alexis Métaireau 2012-12-04 01:24:09 +01:00
commit 822c63cbd7

View file

@ -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())