diff --git a/lib/jekyll-minimagick.rb b/lib/jekyll-minimagick.rb index 6d322af..df5a4bd 100644 --- a/lib/jekyll-minimagick.rb +++ b/lib/jekyll-minimagick.rb @@ -17,6 +17,8 @@ def initialize(site, base, dir, name, preset) @base = base @dir = dir @name = name + @relative_path = File.join(*[@dir, @name].compact) + @extname = File.extname(@name) @dst_dir = preset.delete('destination') @src_dir = preset.delete('source') @commands = preset