Categories: None [Edit]

jekyll_html_truncatewords

https://rubygems.org/gems/jekyll_html_truncatewords
https://github.com/mkasberg/jekyll_html_trunctewords
A Jekyll filter to truncate HTML to a specified number of words. The Liquid truncatewords filter can't operate on HTML because it isn't aware of tags. But Jekyll blog posts usually contain HTML, so this makes it difficult to, for example, use the first 50 words of a blog post as the preview. jekyll_html_truncatewords solves that problem. It works the same as truncatewords, but it is aware of HTML tags so it counts words correctly within HTML and won't break HTML.

Total

Ranking: 109,659 of 186,898
Downloads: 6,412

Daily

Ranking: 100,846 of 186,883
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
171,055,875,105nokogiri
403109,879,514liquid

Owners

#GravatarHandle
1iconmkasberg