mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Don't add 'static' prefix to urls with schema.
Don't add 'static' prefix to urls like 'mailto:some@example.com' or 'skype:somename'.
This commit is contained in:
parent
ddcccfeaa9
commit
f9f6da0a43
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ class Writer(object):
|
|||
relative_paths.append(found)
|
||||
|
||||
for relative_path in relative_paths:
|
||||
if not "://" in relative_path: # we don't want to rewrite protocols
|
||||
if not ":" in relative_path: # we don't want to rewrite protocols
|
||||
dest_path = os.sep.join((get_relative_path(name), "static",
|
||||
relative_path))
|
||||
content = content.replace(relative_path, dest_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue