Fix .WordCount, .FuzzyWordCount, .ReadingTime when summary marker is set
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 Apr 2018 08:17:01 +0000 (10:17 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 29 Apr 2018 08:58:58 +0000 (10:58 +0200)
commit001a28c2f9ed121b33df18fe792859ab378784c6
treec6ba82a96cbf697b6ec99a220c0e477529b10f51
parent391f59f996bee265ac4448103bd2739d4f397439
Fix .WordCount, .FuzzyWordCount, .ReadingTime when summary marker is set

This bug was introduced in Hugo 0.40. It is when you use the `<!--more-->` summary marker.

Note that this affects the word stats only. The related `PlainWords`, `Plain`, `Content` all return correct values.

Fixes #4675
Fixes #4682
helpers/content.go
hugolib/page.go
hugolib/page_test.go