layout |
---|
default |
{% assign total_words = 0 %}
{% for post in site.posts %}
{% assign post_word_count = post.content | number_of_words %}
{% assign total_words = total_words | plus: post_word_count %}
{% endfor %}
All posts:
Total word count: {{ total_words }}
-
{% for post in site.posts %}
- [{{ post.date | date: "%Y-%m-%d" }}] [{{ post.categories }}] {{ post.title }} {% endfor %}