Showing the word count in Jekyll
If you want to count word in a string, use number_of_words
liquid filter.
<p>
{% assign wordCount = post.content | number_of_words %}
</p>
This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.