I store my images in static/images/{name of post}/. How can I get the name of the file from the shortcode? Here’s how I’d like to run the shortcode:
{{< image name="note-01.png" >}}
Then, the shortcode runs the following:
<img src="/images/{name of post}/note-01.png" />