Class: Jekyll::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-page-hooks.rb

Overview

Monkey patch for the Jekyll Site class. For the original class, see: github.com/mojombo/jekyll/blob/master/lib/jekyll/site.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#page_hooksObject

Instance variable to store the various page_hook plugins that are loaded.



35
36
37
# File 'lib/jekyll-page-hooks.rb', line 35

def page_hooks
  @page_hooks
end

Instance Method Details

#load_page_hooksObject

Instantiates all of the page_hook plugins. This is basically a duplication of the other loaders in Site#setup.



39
40
41
# File 'lib/jekyll-page-hooks.rb', line 39

def load_page_hooks
  self.page_hooks = instantiate_subclasses(Jekyll::PageHooks)
end