Hugo is so strange, I’ve worked on a shortcode and it just did not want to work.

{{- $matched := where $allSeries "Params.lostInterest" false -}}

It took me nearly an hour to find the issue! The culprit was the camelCase spelling of lostInterest. As soon as I changed it to all lower case it worked fine. But the big catch is that for simple rendering the value this works:

{{Params.lostInterest}}

But in the where statement it needs to be written like this: Params.lostinterest.

    Comments

    How to respond

    Write your comment on your on page and link it to this page with the following link:
    https://vmac.ch/posts/2021-02-13-test/
    Then insert the permalink to your post into the form below and submit it.

    Alternatively you can reach me by email to: comment@vmac.ch