hextra icon indicating copy to clipboard operation
hextra copied to clipboard

Use generic `Process` from Hugo v0.119.0 for card image processing

Open imfing opened this issue 2 years ago • 2 comments

Hugo v0.119.0 introduced a new function Process that is more general

so we don't need the if block in the card.html image processing logic: https://github.com/imfing/hextra/blob/main/layouts/shortcodes/card.html#L15

imfing avatar Sep 27 '23 19:09 imfing

Seems pretty simple. I can take a look at this tomorrow afternoon if no one has gotten to it by then.

remysheppard avatar Sep 27 '23 22:09 remysheppard

yes, it's pretty neat. with that new function, the interface of the card component could be further simplified.

imfing avatar Oct 01 '23 09:10 imfing