lib/jekyll/drops/theme_drop.rb in jekyll-4.3.3 vs lib/jekyll/drops/theme_drop.rb in jekyll-4.3.4

- old
+ new

@@ -1,11 +1,14 @@ # frozen_string_literal: true module Jekyll module Drops class ThemeDrop < Drop - delegate_methods :root delegate_method_as :runtime_dependencies, :dependencies + + def root + @root ||= ENV["JEKYLL_ENV"] == "development" ? @obj.root : "" + end def authors @authors ||= gemspec.authors.join(", ") end