mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
Don’t render short codes on summary twice
This commit is contained in:
1 parent
f82c645b33
commit
9666f33e2f
1 file changed
+2
-2
+2
-2
@@ -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