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