shithub: hugo

Download patch

ref: 9666f33e2f390b36c96a0d0a914864b910faf745
parent: f82c645b3314eb70e255b0a8526643498b88b592
author: spf13 <[email protected]>
date: Mon Jan 27 12:32:36 EST 2014

Don’t render short codes on summary twice

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -85,8 +85,8 @@
         // 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