class Hikkoshi::Hexo::Post
Public Instance Methods
permalink=(permalink)
click to toggle source
In Hexo
“slug” is called “permalink”
# File lib/hikkoshi/hexo/post.rb, line 10 def permalink=(permalink) @slug = permalink end
post_process_slug()
click to toggle source
In Hexo
it takes the whole file name as slug, instead of date-prefixed
# File lib/hikkoshi/hexo/post.rb, line 15 def post_process_slug if @slug.nil? || @slug.blank? @slug = slug_from_filename(filename, strip_date: false) end end
updated=(updated)
click to toggle source
# File lib/hikkoshi/hexo/post.rb, line 5 def updated=(updated) @updated_at = parse_time(updated) end