Class: Octopress::Filters::PostHooks

Inherits:
Hooks::Post
  • Object
show all
Defined in:
lib/octopress-filters/hooks.rb

Instance Method Summary collapse

Instance Method Details

#pre_render(post) ⇒ Object



13
14
15
16
# File 'lib/octopress-filters/hooks.rb', line 13

def pre_render(post)
  excerpted = post.content.match(post.site.config['excerpt_separator'])
  post.data.merge!({'excerpted' => !!excerpted})
end