@Hakxslo756 the reason @ju52’s shortcode didn’t work for you is because your images are under static/.
The disadvantage of keeping your images under static/ is that you cannot do image processing on them, e.g. Resize, Fit, Fill. (Obviously not everyone needs those features, though).
Using your shortcode as an example, let’s say you wanted to resize all images to 400px width, then link to the original. You could do this:
thanks. i understand the benefit of using resources as opposed to raw files now.
my original question was to insert all files in an arbitrary subfolder, which enables decoupling of post and its images.
so i can do hugo new blog/blog-name.md and then insert the shortcode {{< album albumName >}} after writing introductory texts.
I think yours and @ju52’s solution is great, but for a different usecase.