.bundle/gems/octopress-hooks-2.2.1/lib/octopress-hooks.rb
# Allows site hooks to merge data into the site payload
#
# Returns the patched site payload
Allows site hooks to merge data into the site payload
Returns the patched site payload
Allows site hooks to merge data into the site payload Returns the patched site payload
def site_payload
      unless @cached_payload
        payload = old_site_payload
        if self.site_hooks
          self.site_hooks.each do |hook|
            p = hook.merge_payload(payload, self) || {}
            if p != {}
              payload = Jekyll::Utils.deep_merge_hashes(payload, p)
            end
          end
        end
        @cached_payload = payload
      end
      @cached_payload
    end
def site_payload unless @cached_payload payload = old_site_payload if self . site_hooks self . site_hooks . each do | hook | p = hook . merge_payload ( payload , self ) || { } if p != { } payload = Jekyll :: Utils . deep_merge_hashes ( payload , p ) end end end @cached_payload = payload end @cached_payload end
Allows site hooks to merge data into the site payload
Returns the patched site payload
Allows site hooks to merge data into the site payload Returns the patched site payload