mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
committed by
Bjørn Erik Pedersen
parent
a3af4fe46e
commit
86e8dd62f0
@@ -420,7 +420,11 @@ var (
|
||||
// rendering engines.
|
||||
// TODO(bep) inline replace
|
||||
func (p *Page) replaceDivider(content []byte) []byte {
|
||||
sections := bytes.Split(content, helpers.SummaryDivider)
|
||||
summaryDivider := helpers.SummaryDivider
|
||||
if p.Ext() == "org" {
|
||||
summaryDivider = []byte("# more")
|
||||
}
|
||||
sections := bytes.Split(content, summaryDivider)
|
||||
|
||||
// If the raw content has nothing but whitespace after the summary
|
||||
// marker then the page shouldn't be marked as truncated. This check
|
||||
|
Reference in New Issue
Block a user