RubyGems Navigation menu

jekyll_html_truncatewords 0.1.2

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.

Gemfile:
= Copy to clipboard Copied!

instalar:
=

Versões:

  1. 0.1.2 - January 24, 2021 (8,5 KB)
  2. 0.1.1 - January 24, 2021 (8,5 KB)
  3. 0.1.0 - December 12, 2020 (8,5 KB)

Runtime Dependencies (2):

liquid >= 0
nokogiri >= 0

Donos:

Pushed by:

Autores:

  • Mike Kasberg

SHA 256 checksum:

8911902bb4c24a3382eb6b99fc43f10827f35c088096bc583841f3e019bc2c38

Total de downloads 5.500

Desta versão 2.943

Licença:

MIT

Versão Requerida do Ruby: >= 2.5.0

Links: