Image block attribute disappears with 0.123.x

Consider the following skeletal project .zip file named test-site once unziped.

The homepage contains the following:

![My site](some-path)
{.logo}

If I generate the site using Hugo 0.122.0 or 0.123.7, then the image element includes the class name:

<img src="some-path" alt="My site" class="logo">

Now uncomment the following line in hugo.yaml:

languages: {en: {languageName: English}}

And regenerate using 0.122.0, then we get the same result. But with Hugo 0.123.7, the <img> class attribute disappears.

Is the a feature or a bug?

Thanks,
Patrice

This is a bug, and I know what’s causing the failure. Will fix tonight or tomorrow. Until we roll another release, you can do this in site config:

[markup.goldmark]
duplicateResourceFiles = true # default is false

But make a note somewhere to roll that back after the fix is pushed.

https://github.com/gohugoio/hugo/issues/12203
https://github.com/gohugoio/hugo/pull/12204

2 Likes

Fixed in v0.123.8.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.