mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Don’t render short codes on summary twice
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user