mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugolib: Add check for p.Markup == "org"
To be improved.
This commit is contained in:
parent
86e8dd62f0
commit
75d855c086
1 changed files with 2 additions and 1 deletions
|
@ -421,7 +421,8 @@ var (
|
||||||
// TODO(bep) inline replace
|
// TODO(bep) inline replace
|
||||||
func (p *Page) replaceDivider(content []byte) []byte {
|
func (p *Page) replaceDivider(content []byte) []byte {
|
||||||
summaryDivider := helpers.SummaryDivider
|
summaryDivider := helpers.SummaryDivider
|
||||||
if p.Ext() == "org" {
|
// TODO(bep) handle better.
|
||||||
|
if p.Ext() == "org" || p.Markup == "org" {
|
||||||
summaryDivider = []byte("# more")
|
summaryDivider = []byte("# more")
|
||||||
}
|
}
|
||||||
sections := bytes.Split(content, summaryDivider)
|
sections := bytes.Split(content, summaryDivider)
|
||||||
|
|
Loading…
Reference in a new issue