mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Don’t render short codes on summary twice
This commit is contained in:
parent
f82c645b33
commit
9666f33e2f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue