File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ module Jekyll
33 class Page
44 include Convertible
55
6+ attr_writer :dir
67 attr_accessor :site , :pager
7- attr_accessor :name , :ext , :basename , :dir
8+ attr_accessor :name , :ext , :basename
89 attr_accessor :data , :content , :output
910
1011 # Initialize a new Page.
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ def self.subclasses
3434 #
3535 # Returns the Symbol priority.
3636 def self . priority ( priority = nil )
37+ @priority ||= nil
3738 if priority && PRIORITIES . has_key? ( priority )
3839 @priority = priority
3940 end
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def write
266266 def post_attr_hash ( post_attr )
267267 # Build a hash map based on the specified post attribute ( post attr =>
268268 # array of posts ) then sort each array in reverse order.
269- hash = Hash . new { |hash , key | hash [ key ] = Array . new }
269+ hash = Hash . new { |hsh , key | hsh [ key ] = Array . new }
270270 self . posts . each { |p | p . send ( post_attr . to_sym ) . each { |t | hash [ t ] << p } }
271271 hash . values . map { |sortme | sortme . sort! { |a , b | b <=> a } }
272272 hash
You can’t perform that action at this time.
0 commit comments