Empress
Empress copied to clipboard
Excerpts and/or pagination?
Right now, the App.Posts
loop just loops the links to each post. Wouldn't it be more interesting if it had excerpts? Perhaps there could be a method to just grab the first paragraph, or first 100 words or something with a "Read more…" link?
This also raises issues of pagination. With or without excerpts, a blog with 100 posts would just scroll forever. Are there any plans to handle that?
I've thought about both of these. I think the build script could easily be modified to include excerpts... maybe grabbing the first paragraph after the title or something like that... then throw it in the post model. Not sure if that should be the default behavior or just a build flag?
Also, you are correct about pagination. I didn't include this as a top priority because many blogs aren't that big, (I modeled a lot of the original decisions off of @holman 's blog. However, you're right, there may need to be a route to handle pagination.
Wow. Yeah, in context, Holman has done is really well. That's a pretty great approach, and it makes a lot of sense with that design and writing style.
Are you actually using Empress in production right now? I love the approach a lot; I'm still trying to decide if it fits all my needs (or I can submit PR's for the needs it doesn't currently :) ).
I'm not yet. Issue #6 is a big hurdle for me. I've been exploring options, but haven't found a good solution yet.