[dokuwiki] Re: [PATCH] Explicit "read more" marker for include's firstsec option

  • From: Jeremy <stealth702@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 3 Mar 2010 20:31:02 +0100

On Mar 3, 2010 6:53 AM, "Stephen Warren" <swarren@xxxxxxxxxxxxx> wrote:

For my blog, I intend to use the firstsec option to limit the main blog
page to small excerpts of the posts. I think that I won't always want
this excerpt to be exactly the first section of the article as define by
headlines.

So, I implemented support for writing a ~~READMORE~~ marker in the
article, which if present, will mark the end of the excerpt posted to
the main blog page, and if missing, include will fall back to the old
"first section" logic.

Does this seem reasonable? In particular, I could see some people not
liking this being enabled under the firstsec option, but want it to
require some other option. However, I think the automatic fallback makes
it nice and easy to optionally use.

Other related posts: