sanity-io / sanity-plugin-asset-source-unsplash

Search photos on Unsplash and use them directly inside of your Sanity Studio.
MIT License
17 stars 5 forks source link

Provide more info about the author from the API #6

Open marekbrze opened 2 years ago

marekbrze commented 2 years ago

Current state: Currently there is only possibility to get creditLine and source.url from the sanity.mageAsset object if you want to give attribution to the author of the photo. creditLine doesn't follow the format proposed by Unsplash -> Photo by Andres Molina** on Unsplash. It says [user] by Unsplash. Also it's not language agnostic.

Proposed state Add following fields from the Unsplash API to the sanity.imageAsset:

This will provide many possibilities to display attribution information on the frontend.