Don’t render short codes on summary twice
authorspf13 <steve.francia@gmail.com>
Mon, 27 Jan 2014 22:32:36 +0000 (17:32 -0500)
committerspf13 <steve.francia@gmail.com>
Mon, 27 Jan 2014 22:32:36 +0000 (17:32 -0500)
hugolib/page.go

index cd87ec6763b52fc9c7a3afa67f4b4690c6cb4522..cd4dd4b63f3c2a302c4afcb157b02ad5f8332013 100644 (file)
@@ -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