hugolib: Add check for p.Markup == "org"

To be improved.
This commit is contained in:
Bjørn Erik Pedersen 2017-02-21 08:49:04 +01:00
parent 86e8dd62f0
commit 75d855c086

View file

@ -421,7 +421,8 @@ var (
// TODO(bep) inline replace
func (p *Page) replaceDivider(content []byte) []byte {
summaryDivider := helpers.SummaryDivider
if p.Ext() == "org" {
// TODO(bep) handle better.
if p.Ext() == "org" || p.Markup == "org" {
summaryDivider = []byte("# more")
}
sections := bytes.Split(content, summaryDivider)