hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 9666f33e2f390b36c96a0d0a914864b910faf745
parent f82c645b3314eb70e255b0a8526643498b88b592
Author: spf13 <steve.francia@gmail.com>
Date:   Mon, 27 Jan 2014 17:32:36 -0500

Don’t render short codes on summary twice

Diffstat:
Mhugolib/page.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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