mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge e6dab6b05f into cfcf40f1f8
This commit is contained in:
commit
a1f80797ad
1 changed files with 5 additions and 0 deletions
|
|
@ -261,6 +261,11 @@ class Content(object):
|
|||
self.get_relative_source_path())
|
||||
origin = '/'.join((siteurl, linked_content.url))
|
||||
origin = origin.replace('\\', '/') # for Windows paths.
|
||||
elif path.replace('%20', ' ') in self._context['filenames']:
|
||||
path_with_spaces = path.replace('%20', ' ')
|
||||
origin = '/'.join((siteurl,
|
||||
self._context['filenames'][path_with_spaces].url))
|
||||
origin = origin.replace('\\', '/') # for Windows paths.
|
||||
else:
|
||||
logger.warning(
|
||||
"Unable to find '%s', skipping url replacement.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue