Method: Moft::Post#title
- Defined in:
- lib/moft/post.rb
#title ⇒ Object
Public: the Post title, from the YAML Front-Matter or from the slug
Returns the post title
119 120 121 |
# File 'lib/moft/post.rb', line 119 def title self.data["title"] || self.slug.split('-').select {|w| w.capitalize! || w }.join(' ') end |