ref: 75d855c086e68a3847ad5cb843073939df3b0d83
parent: 86e8dd62f0b1c8adf14e9369b089d209317aaf2d
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Feb 21 03:49:04 EST 2017
hugolib: Add check for p.Markup == "org" To be improved.
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -421,7 +421,8 @@
// 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)