From: spf13 Date: Mon, 27 Jan 2014 22:32:36 +0000 (-0500) Subject: Don’t render short codes on summary twice X-Git-Tag: v0.10~44 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9666f33e;p=brevno-suite%2Fhugo Don’t render short codes on summary twice --- diff --git a/hugolib/page.go b/hugolib/page.go index cd87ec67..cd4dd4b6 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -85,8 +85,8 @@ func (p *Page) setSummary() { // If user defines split: // Split then render p.Truncated = true // by definition - header := string(bytes.Split(p.rawContent, summaryDivider)[0]) - p.Summary = bytesToHTML(p.renderBytes([]byte(ShortcodesHandle(header, p, p.Tmpl)))) + header := bytes.Split(p.rawContent, summaryDivider)[0] + p.Summary = bytesToHTML(p.renderBytes(header)) } else { // If hugo defines split: // render, strip html, then split