In question for me is the part for srcset= The result is a set of breakpoints (small, medium, large) inside the srcset divided by comma except the last entry.
I’m not able to translate the loop into Hugo. Rest works fine.
Tnx for quick reply. Do you agree that this easy task is solved very logically in Jekyll and very complicated in Hugo? For the Jekyll solution it took me around 15 minutes to produce a working partial. For the Hugo solution I’m trying already several hours. Your link is appreciated but doesn’t help as expected. It seems that I have to search more or go back to Jekyll (what I definitely not want).
Everything is much faster and more logical in a framework etc. that you know well.
I can create a usable Hugo site and deploy it to Amazon or Netlify in minutes.
I can (maybe) create a usable Jekyll site and deploy it to Amazon or Netlify in a day.
The above statements says nothing about the frameworks. If I had known both static site gens equally well, I would maybe said that both have their strenghts, so some stuff is easier/faster in the other and vice versa.