mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 05:19:55 -04:00
Don’t render short codes on summary twice
This commit is contained in:
parent
f82c645b33
commit
9666f33e2f
@ -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…
x
Reference in New Issue
Block a user