Add missing elements to Excerpt which delegate to its Document
This commit is contained in:
parent
c46f219d3c
commit
e3214c23a3
|
@ -102,8 +102,8 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns true if the given key is present
|
# Returns true if the given key is present
|
||||||
def key?(key)
|
def key?(key)
|
||||||
if self.class.mutable && @mutations.key?(key)
|
if self.class.mutable
|
||||||
true
|
@mutations.key?(key)
|
||||||
else
|
else
|
||||||
respond_to?(key) || fallback_data.key?(key)
|
respond_to?(key) || fallback_data.key?(key)
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,8 @@ module Jekyll
|
||||||
attr_writer :output
|
attr_writer :output
|
||||||
|
|
||||||
def_delegators :@doc, :site, :name, :ext, :relative_path, :extname,
|
def_delegators :@doc, :site, :name, :ext, :relative_path, :extname,
|
||||||
:render_with_liquid?, :collection, :related_posts, :url
|
:render_with_liquid?, :collection, :related_posts,
|
||||||
|
:url, :next_doc, :previous_doc
|
||||||
|
|
||||||
# Initialize this Excerpt instance.
|
# Initialize this Excerpt instance.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue