From c99a2102f83e442f81e8cf0263ab0199a1943e4c Mon Sep 17 00:00:00 2001 From: Duncan Lock Date: Wed, 24 Apr 2013 20:38:20 -0700 Subject: [PATCH] Added suuport for responsive images; added initial support for SVG Signed-off-by: Duncan Lock --- .../better_figures_and_images.py | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/better_figures_and_images/better_figures_and_images.py b/better_figures_and_images/better_figures_and_images.py index 4d5d1c5..0b3df23 100644 --- a/better_figures_and_images/better_figures_and_images.py +++ b/better_figures_and_images/better_figures_and_images.py @@ -11,7 +11,6 @@ TODO: Need to add a test.py for this plugin. """ -import types import os from pelican import signals @@ -22,23 +21,31 @@ from PIL import Image def content_object_init(instance): - def _get_content(self): - content = self._content - return content - - instance._get_content = types.MethodType(_get_content, instance) - if instance._content is not None: content = instance._content soup = BeautifulSoup(content) + # if '