we’re using .Summary and .Content a lot. Basically, we show the .Summary on an overview page and if the user clicks on the link he gets the .Content to read the full article. That’s great. However, we have some writers who also write pages and we want to use the .Summary as the lead to the text. The lead is formatted differently than the rest of the text. So, what we now try to achieve is using the .Summary to be formatted as lead (different CSS) and the rest as the standard body.
The problem is that the .Summary works fine, but if we then add the .Content it also holds the already shown .Summary. Is there a way to strip the .Summary from the .Content so that we get the rest only?
I suspected some hacks would arrive in this thread. And they may work … This is on my list of improvements I want in Hugo, but should be done properly in the Markdown parser. I have suggested creating a “content section map” …