Hi everyone!
This is my first post here. I really love Hugo, so thanks to everyone who is involved.
I am wondering if it is possible to pass parameters to the URL used by .GetRemote via it’s options map?
This works fine:
{{ $url := print "https://" $cloudinary_key ":" $cloudinary_secret "@api.cloudinary.com/v1_1/" $cloudinary_name "/resources/search?expression=folder:" $cloudinary_folder "&max_results=" .number }}
{{ $resource := resources.GetRemote $url}}
But is is possible to do something like this:
{{ $url := print "https://" $cloudinary_key ":" $cloudinary_secret "@api.cloudinary.com/v1_1/" $cloudinary_name "/resources/search?expression=folder:" $cloudinary_folder }}
{{ $opts dict
"max_results" "5"
}}
{{ $resource := resources.GetRemote $url $opts}}
The reason I ask is because I want to add a lot more parameters, which will make the URL long and difficult to handle and read.
Thanks!