Skip to content

v4 does not currently resize/convert either post header (“featured”) images or Markdown content images, even if the imageProcessing.cover/content.enabled flags are set to true #1275

@GitterDoneScott

Description

@GitterDoneScott

What happened?

In v4.0.0-beta.7, the theme’s templates that render:

Markdown images (layouts/_markup/render-image.html)

Header/featured images (layouts/_partials/article/components/header.html)

do not call Hugo image transforms like .Resize, and they don’t emit srcset.

So: even with image processing “enabled”, there are no resized derivatives to serve (for these two cases).

Hugo version

0.155 extended

Theme version

v4 Beta 7

What browsers are you seeing the problem on?

Chrome

More information about the browser

Chrome 145.0.7632.109 Windows 11

Relevant log output

Link to Minimal Reproducible Example

https://github.com/CaiJimmy/hugo-theme-stack-starter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions