So I finally updated Hugo… and it seems things have changed. Now when I’m generating list pages and use {{ .Summary | truncate 120 }} on the cards the images appear there, are not filtered out.
Which is a problem - usually each post starts with an image and I don’t want to show it in a summary / truncated content on the cards.
Is there a way to get rid of those images when truncating content?
You can define a summary manually, in front matter, or automatically. We changed the rendering of automatic summaries in v0.134.0 (see release notes). Now all three summary types are consistently rendered. Yes, for some sites this was a breaking change, but it had to be done.
@chrillek: actually I did search - but those brought old topics about images. The trick with search is that you need a proper keyword - it hasn’t occured to me to type “summary includes HTML” in the search box
“summary” is sufficient. But I agree, it’s not obvious what to look for. I read here regularly, so I had seen these posts some time ago and remembered that something changed with regard to summary.