Downloading Images


I am migrating my website with free graphics to Hugo.

There is 300 posts and each of them have an image inserted in .md file. Now the questions is how can I make that image downloadable in other way than right clicking and choosing “Save with…” option for users?

I’m missing on something?


Assuming you’re using the figure shortcode, you can use its link parameter with the same value as the one for src. That should turn the image into a link people can click and download. Ie.

{{< figure src="/media/spf13.jpg" link="/media/spf13.jpg" >}}

You cannot force an image download on the client side, if that’s what you’re asking.

See more @ stackoverflow