From f15103bedd7d1583063ff6098bc34b92e10bf556 Mon Sep 17 00:00:00 2001 From: Philip Colmer Date: Wed, 9 Aug 2017 10:03:39 +0100 Subject: [PATCH] Add missing properties that are used by other plugins. --- lib/jekyll-minimagick.rb | 2 ++ 1 file changed, 2 insertions(+) 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