From 310ae7edeea19a051f112b85a781cb21f3c8627b Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Sat, 14 Oct 2017 17:35:51 +0100 Subject: [PATCH] Update pelican_import.py Link to ```{filename}/path/to/file``` --- pelican/tools/pelican_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index fa5d85b9..a8e323fb 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -764,7 +764,7 @@ def fields2pelican( for path, urls in attached_files.items(): for url in urls: content = re.sub(url, - r'{filename}/%s' % path, + r'/{filename}/%s' % path, content) if out_markup == 'markdown':