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
|
|
@ -435,7 +435,7 @@ def path_to_url(path):
|
|||
|
||||
def posixize_path(rel_path):
|
||||
"""Use '/' as path separator, so that source references,
|
||||
like '{filename}/foo/bar.jpg' or 'extras/favicon.ico',
|
||||
like '{static}/foo/bar.jpg' or 'extras/favicon.ico',
|
||||
will work on Windows as well as on Mac and Linux."""
|
||||
return rel_path.replace(os.sep, '/')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue