Change SummaryLength to be configurable (#3924)
authorBrendan Roy <br3ndanr@gmail.com>
Fri, 29 Sep 2017 07:04:55 +0000 (17:04 +1000)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 29 Sep 2017 07:04:55 +0000 (09:04 +0200)
commit8717a60cc030f4310c1779c0cdd51db37ad636cd
treefeb0ee781117c22649dceebe24a29db59c5957fd
parent2818878994e906c292cbe00cb2a83f1531a21f32
Change SummaryLength to be configurable (#3924)

Move SummaryLength into the ContentSpec struct and refactor the
relevant summary functions to be methods of ContentSpec. The new
summaryLength struct member is configurable by the summaryLength config
value, and the default remains 70. Also updates hugolib/page to use the
refactored methods.

Resolves #3734
docs/content/getting-started/configuration.md
helpers/content.go
helpers/content_test.go
hugolib/config.go
hugolib/page.go