Skip to content

A Jekyll plugin that adds a Liquid filter to return the first paragraph of an HTML string.

Notifications You must be signed in to change notification settings

segment-boneyard/jekyll-first-paragraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

jekyll-first-paragraph

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.

Usage

It requires the 'nokogiri' gem, so:

gem install nokogiri

And then in your Liquid-parsed file:

{{ post.content | first_paragraph }}

License

MIT

About

A Jekyll plugin that adds a Liquid filter to return the first paragraph of an HTML string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages