parent
6a7a393df5
commit
55d64c7e70
|
@ -93,6 +93,7 @@ module Jekyll
|
||||||
self.pages = []
|
self.pages = []
|
||||||
self.static_files = []
|
self.static_files = []
|
||||||
self.data = {}
|
self.data = {}
|
||||||
|
@site_data = nil
|
||||||
@collections = nil
|
@collections = nil
|
||||||
@docs_to_write = nil
|
@docs_to_write = nil
|
||||||
@regenerator.clear_cache
|
@regenerator.clear_cache
|
||||||
|
@ -254,7 +255,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the Hash to be hooked to site.data.
|
# Returns the Hash to be hooked to site.data.
|
||||||
def site_data
|
def site_data
|
||||||
config["data"] || data
|
@site_data ||= (config["data"] || data)
|
||||||
end
|
end
|
||||||
|
|
||||||
# The Hash payload containing site-wide data.
|
# The Hash payload containing site-wide data.
|
||||||
|
|
Loading…
Reference in New Issue