Apologies if this has been requested before.
There are certain situations where it would be useful to be able to associate metadata with a page’s colocated assets (most notably in populating the alt tag for images).
Grabbing this as metadata from the individual files would likely be quite complex as the number of possible file types is large, but would an extension to the pages frontmatter be possible? Where the values defined in the frontmatter are then associated with the file.
Something like the below?
[assets]
“ball.jpg” = { name = “Ball”, description = “A red ball”, photographer = “John Smith” }
“duck.png” = { name = “Duck”, description = “A white duck”, photographer = “Joan Smith” }