From 0b11a3813b639d7ba526a0663f2667ac3b6452a8 Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Mon, 28 Feb 2011 12:09:33 +0800 Subject: [PATCH] simplified the theme_image_tag a little --- lib/locomotive/liquid/filters/html.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/locomotive/liquid/filters/html.rb b/lib/locomotive/liquid/filters/html.rb index acfca793..963cfd30 100644 --- a/lib/locomotive/liquid/filters/html.rb +++ b/lib/locomotive/liquid/filters/html.rb @@ -43,10 +43,8 @@ module Locomotive # input: name of file including folder # example: 'about/myphoto.jpg' | theme_image # def theme_image_tag(input, *args) - return '' if input.nil? - input = "images/#{input}" unless input.starts_with?('/') image_options = inline_options(args_to_options(args)) - "" + "" end # Write an image tag