HashandSalt / chopper

This plugin creates excerpts and keeps HTML tags.
MIT License
26 stars 2 forks source link

Support for <!--more--> #5

Closed joachimesque closed 7 months ago

joachimesque commented 1 year ago

Hey, thanks for this plugin!

I'd like to be able to specify when an excerpt should be cut. For example, the following text is chopped just after the start of a new paragraph:

image

With WordPress, Hugo or other CMS, I can add a <!--more--> tag which will cut off the escerpt before the limit is reached. Would it be possible to have this feature in Chopper?

Thanks!

mauricerenck commented 7 months ago

@joachimesque I just stumbled upon your post here, while looking for something else. I guess you are looking for something like this: https://getkirby.com/docs/cookbook/templating/paginating-posts

I use a very simple page-method for that, where I can set <!--cut--> anywhere in my blog posts and everything above that will be shown in the bloglisting as some sort of preview. If you still need that, just ping me, I can give you a snippet.

joachimesque commented 7 months ago

Oh nice, I had forgotten about this message and didn’t know about this solution. Thanks!