From 75d855c086e68a3847ad5cb843073939df3b0d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 21 Feb 2017 08:49:04 +0100 Subject: [PATCH] hugolib: Add check for p.Markup == "org" To be improved. --- hugolib/page.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hugolib/page.go b/hugolib/page.go index 07d073c9e..18e33d0b3 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -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)