Re:KDE.org migrated to Hugo
by Already__Taken on Friday October 30, 2020 @02:57PM
(#24945630)
what are you doing about images? all these generators seen to leave you in the dark about optimizing images.
[ Parent
| on HN ]
Re:KDE.org migrated to Hugo
by DyslexicAtheist on Friday October 30, 2020 @03:09PM
(#24945730)
I was doing image optimization manually but then there weren't much images in my case so that was doable by optimizing sizes/ resolution using Gimp. There are meanwhile better options but it's theme dependent. In hugo this is what I wanted:
but IIRC not all of its image features were available in the theme's zola port https://github.com/getzola/after-dark
Hugo has integrated image processing: https://gohugo.io/content-management/image-processing/
This is (unsurpisingly) a difficult problem to solve. I've been trying to help my colleague at Gatsby (a React based framework that uses static site generation) with improvements to the image optimization API Gatsby includes with its image plugins.
Just when you think you've handled every edge case, you have to account for screen pixel densities, better ways to infer sizes and srcSet attributes on picture tags, browsers with or without modern features for loading images in better.. it's no small task!
(I'm obviously biased but I think Gatsby's solution is pretty good now)