mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
automatically copy linked static files
This commit is contained in:
parent
5c08af8f80
commit
048ea4dc0c
32 changed files with 424 additions and 224 deletions
|
|
@ -761,7 +761,7 @@ def update_links_to_attached_files(content, attachments):
|
|||
http_url = old_url.replace('https://', 'http://')
|
||||
https_url = old_url.replace('http://', 'https://')
|
||||
for url in [http_url, https_url]:
|
||||
content = content.replace(url, '{filename}' + new_path)
|
||||
content = content.replace(url, '{static}' + new_path)
|
||||
return content
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue