From 29f0aa39d2239122782fa5c1a547827cf7acedb0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 22 Mar 2013 00:13:37 -0400 Subject: [PATCH] content: Don't update static content --- pelican/contents.py | 3 +++ 1 file changed, 3 insertions(+) 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*=)