lib/evertils/config.rb in evertils-1.0.5 vs lib/evertils/config.rb in evertils-1.0.6

- old
+ new

@@ -88,15 +88,19 @@ args.include? key end end def translate_placeholders + title_format = @yml[:title].dup + @yml.map do |item| REPLACEMENTS.each_pair do |k, v| item.last.gsub!(k.to_s, v.to_s) if item.last.is_a? String item.last.map { |i| i.gsub!(k.to_s, v.to_s) } if item.last.is_a? Array end end + + @yml[:title_format] = title_format unless @yml.key? :title_format symbolize_keys(@yml) self end \ No newline at end of file