mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Make file path be from root
This commit is contained in:
parent
006b41b48a
commit
df50dd958e
1 changed files with 2 additions and 2 deletions
|
|
@ -39,11 +39,11 @@ def decode_wp_content(content, attached_files=None, br=True):
|
|||
for path, urls in attached_files.items():
|
||||
for url in urls:
|
||||
content = re.sub(r'(<a\s+[^>]*href=")%s(")' % url,
|
||||
r'\1%s\2' % path,
|
||||
r'\1/%s\2' % path,
|
||||
content)
|
||||
|
||||
content = re.sub(r'(<img\s+[^>]*src=")%s(")' % url,
|
||||
r'\1%s\2' % path,
|
||||
r'\1/%s\2' % path,
|
||||
content)
|
||||
|
||||
content += "\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue