I’d like to see a function to use in templates which fetches a remote file.
In my case, I would like to fetch remote thumbnails for YouTube videos. But I can imagine that this is useful as well for other cases
Semantics
This function could look like this:
fetch_raw(url="...") -> Url
- This is similar to load_data, in the sense that it fetches remote data
- This is similar to resize_image, in the sense that the command returns an URL for the locally stored file (tostatic/processed_images) in this case.
Modifying the existing resize_image function to support a remote url would be an option for me as well.
What are the thoughts on this? Could this be implemented?
Related GitHub issue: https://github.com/getzola/zola/issues/738