Replies: 1 comment 1 reply
-
Just checking in @chipzoller @onweru - There are pending bugs in the image handling (some reported, and some I've recently discovered myself) but I'm reluctant to invest a lot of time into fixing it if we might adopt something else. I suppose another alternative to adopting one of the above modules is to roll back to a simpler form of image handling and allow users to add whatever they want on top of it. One challenge is that we try to support images whether you're using Page Bundles or not -- most themes I've seen have picked supporting one or the other. A lot of the logic in our image partials is about trying to navigate that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background: Complexity around images and image-related functionality (like captioning) has grown significantly -- mostly from my own additions. This has led to a much larger surface area for bugs, and many changes/fixes generate new ones. Current bugs include #326, #337, #310 (comment). There's also an issue with putting classes on images but not on wrapping
<figure>
elements (which makes it impossible to do things like constrain or float an image with its caption).Proposal: Consider adapting one of the other comprehensive Hugo theme modules for images that are out there. Instead of being responsible for all their functionality as part of this theme, we'd leverage work other people are already doing, and instead spend our time on things specific to our theme, like the figure numbering.
Examples: Two Hugo-oriented projects I know of are DFD image handling and hyas/images. Both of these have even more features than what we've already come up with -- for instance, auto-generating
WebP
versions using Hugo Pipes, providing responsive styles (not serving larger images than a device needs), LQIP/blur-up, and better performance/accessibility.Checklist:
vendor
dir?What do you think @chipzoller @onweru? In particular wondering about any opinions on the third item above.
Beta Was this translation helpful? Give feedback.
All reactions