A Jekyll plugin that adds the first_paragraph
Liquid filter, which returns the first paragraph of an HTML string. Useful for creating excerpts for a post.
It requires the 'nokogiri'
gem, so:
gem install nokogiri
And then in your Liquid-parsed file:
{{ post.content | first_paragraph }}
MIT