I’m using the middleman blog article.summary feature to add article summaries to a blog index page. On the article page I’d like to wrap the summary to style it differently to the rest of the article:
<div class="summary">
<%= article.summary %>
</div>
<%= article.body %>
However this repeats the summary text.
Is it possible to get the article body without the summary without doing something like this:
<%= current_article.body.sub(current_article.summary, '') %>