diff --git a/pelican/contents.py b/pelican/contents.py index fd33bc4c..1b604f19 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -171,6 +171,9 @@ class Content(object): :param siteurl: siteurl which is locally generated by the writer in case of RELATIVE_URLS. """ + if not content: + return content + hrefs = re.compile(r""" (?P<\s*[^\>]* # match tag with src and href attr (?:href|src)\s*=)