summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index d5c444ed6..12bdf312b 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -677,9 +677,9 @@ func (p *Page) setAutoSummary() error {
var summary string
var truncated bool
if p.isCJKLanguage {
- summary, truncated = helpers.TruncateWordsByRune(p.PlainWords(), helpers.SummaryLength)
+ summary, truncated = p.s.ContentSpec.TruncateWordsByRune(p.PlainWords())
} else {
- summary, truncated = helpers.TruncateWordsToWholeSentence(p.Plain(), helpers.SummaryLength)
+ summary, truncated = p.s.ContentSpec.TruncateWordsToWholeSentence(p.Plain())
}
p.Summary = template.HTML(summary)
p.Truncated = truncated