class Hyde::Post
Public Instance Methods
dest_dir()
click to toggle source
Calls superclass method
Hyde::Page#dest_dir
# File lib/hyde/post.rb, line 16 def dest_dir if index? super else File.join(super, '_posts') end end
dest_filename()
click to toggle source
# File lib/hyde/post.rb, line 8 def dest_filename if index? name else "#{time.strftime('%Y-%m-%d')}-#{name}" end end
index?()
click to toggle source
# File lib/hyde/post.rb, line 4 def index? name.match(/index(\.[^\.]+)?/) end