News for hackers. Stuff that matters.
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.
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:

https://after-dark.habd.as/

but IIRC not all of its image features were available in the theme's zola port https://github.com/getzola/after-dark

Re:KDE.org migrated to Hugo by dewey on Friday October 30, 2020 @04:22PM (#24946505)
Hugo has integrated image processing: https://gohugo.io/content-management/image-processing/
Re:KDE.org migrated to Hugo by kylegill on Friday October 30, 2020 @05:38PM (#24947121)
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)

Re:KDE.org migrated to Hugo by wtetzner on Friday October 30, 2020 @04:43PM (#24946702)
According to the README, Zola has image processing support. Not sure exactly what that means though.