<!---more---> tag or equivalent for ghost
I've been transferring over from WordPress and I am trying to find the equivalent for the <!---more---> tag that is used in wordpress to signify where to cut the content for a post preview. Is there something similar in ghost?
http://codex.wordpress.org/Customizing_the_Read_More
After looking further into it, it seems like the Read More tag is set by the theme. For example, casper sets it to 26 words.
<section class="post-excerpt">
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">»</a></p>
</section>
It would be nice if the themes took into account a certain tag if it was set.
Like for example {{</preview>}} or {{excerpt words="26"}}
@arianf I think the same and I improve core/helpers for it on local and make pull request: https://github.com/TryGhost/Ghost/pull/4885
Shouldn't this be closed now?
They haven't merge anything yet, have they?
Thought this happend?
I closed that one myself, it wasn't merged. I resubmitted another pull request here: #4973
Ahh, makes sense. Thanks.
The <!--more--> feature in WordPress is a relic which was inherited from the old b2 blogging platform. It has seemingly been passed down from platform to platform without much thought. It's a developer-centric hack that is not at all user friendly and really doesn't fit into Ghost.
In addition to this, it also introduces a contract between the content and how it is displayed which is very different to how excerpts work currently in Ghost. The excerpt of your content, and whether there even needs to be one, is determined by your theme and the style of blog the theme creates. Introducing a method of overriding what the theme determines at the post level is not a trivial change to that relationship, and furthermore it brings with it the expectation that anything consuming content from Ghost would honour that contract - not just themes, but RSS feeds, apps, extensions and any 3rd party Ghost client.
We certainly want to improve Ghost's excerpts but not by simply copying the behaviour of platforms that came before us.
@ErisDS Do you have something in mind for improving Ghost's excerpts? The improve link you've got is self-referential and it's not clear whether you want to allow customizing excerpts at all due to the contract.
@jcrben sorry, the improve link was supposed to point to another issue - now updated