lib/jekyll/page.rb in jekyll-3.1.0.pre.rc1 vs lib/jekyll/page.rb in jekyll-3.1.0.pre.rc2

- old
+ new

@@ -5,10 +5,12 @@ attr_writer :dir attr_accessor :site, :pager attr_accessor :name, :ext, :basename attr_accessor :data, :content, :output + alias_method :extname, :ext + # Attributes for Liquid templates ATTRIBUTES_FOR_LIQUID = %w( content dir name @@ -157,8 +159,16 @@ end # Returns the Boolean of whether this Page is an index file or not. def index? basename == 'index' + end + + def trigger_hooks(hook_name, *args) + Jekyll::Hooks.trigger :pages, hook_name, self, *args + end + + def write? + true end end end