How can I use the param shortcode to access a value in a nested list?

I’m trying to use Hugo’s baked in param shortcode in my markdown file, but I can’t figure out what the syntax should be for a value within a nested list. Hugo’s documentation for the param shortcode isn’t helping me, unfortunately.

For example, if I have the following in my markdown file, the last line throws a Param "nestedList.[1].value" not found error. How can I display the value for the second value key (i.e. “20”) from the nested list?

title: "My Hugo Post"
date: 2023-11-22
  - name: "Nested Item 1"
    value: 10
  - name: "Nested Item 2"
    value: 20

This works: {{< param "title" >}}.

This throws an error: {{< param "nestedList.[1].value">}}

You can’t use it for a nested list. You’ll need to create your own shortcode to do this. This is the embedded shortcode: