{{ .Content }} inside a shortcode sometimes disappear

I have the following shortcode:

{{ range (where .Site.RegularPages "Section" "news") }}
    <strong>Params:</strong> {{ .Params }} <br>
    <strong>Content:</strong> {{ .Content }}
{{ end }}

{{ .Params }} is always displayed, but {{ .Content }} does not! Including when building site.

Any idea what’s wrong?

What version of Hugo?

Also note that you cannot show .Content form the page the current shortcode lives in.

It was 0.37, I updated to 0.48 and the problem disappeared!

Thanks for the agility in the response and sorry for the inconvenience.

1 Like