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



26
27
28
29
# File 'lib/octopress-filters/hooks.rb', line 26

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