mirror of
https://github.com/getpelican/pelican.git
synced 2026-05-28 01:36:13 +02:00
Merge c5178238d0 into e10fe42928
This commit is contained in:
commit
bf427c4104
1 changed files with 4 additions and 0 deletions
|
|
@ -215,6 +215,10 @@ class Content(object):
|
|||
os.path.join(self.relative_dir, path)
|
||||
)
|
||||
|
||||
# spaces in filename
|
||||
if path not in self._context['filenames'] and '%20' in path:
|
||||
path = path.replace('%20', ' ')
|
||||
|
||||
if path in self._context['filenames']:
|
||||
origin = '/'.join((siteurl,
|
||||
self._context['filenames'][path].url))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue