mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 62ca9d8fc1 into 8d352d9a78
This commit is contained in:
commit
001de47e77
1 changed files with 3 additions and 0 deletions
|
|
@ -209,6 +209,9 @@ class Content(object):
|
||||||
os.path.join(self.relative_dir, value)
|
os.path.join(self.relative_dir, value)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Make sure value has os-compatible path string, which is how
|
||||||
|
# it will be keyed in the context filenames dictionary.
|
||||||
|
value = os.path.join(*value.split('/'))
|
||||||
if value in self._context['filenames']:
|
if value in self._context['filenames']:
|
||||||
origin = '/'.join((siteurl,
|
origin = '/'.join((siteurl,
|
||||||
self._context['filenames'][value].url))
|
self._context['filenames'][value].url))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue