commit 22d85c2a182642da010e3963d5ed5c64325aebb7
parent 371c148c340b611e9c78a8e56f19236df3e57c61
Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Tue, 10 Feb 2015 14:37:29 +0100
Avoid converting summary to []byte and back to string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -191,7 +191,7 @@ func (p *Page) setSummary() {
// If hugo defines split:
// render, strip html, then split
summary, truncated := helpers.TruncateWordsToWholeSentence(p.PlainWords(), helpers.SummaryLength)
- p.Summary = helpers.BytesToHTML([]byte(summary))
+ p.Summary = template.HTML(summary)
p.Truncated = truncated
}