My Hugo module does not work

Dear all,

I am quite successful doing my uphill battle against hugo modules. I managed to use a theme as module both with the “theme = github.com…” notation and the new module import notation.

I even made a sample module that seems to work.

hugo mod get https://github.com/juh2/example-render-image

works an I have this in go.mod:

module example5

go 1.21.3

require github.com/juh2/example-render-image v0.0.0-20231106075550-d64dcdbc425a // indirect

But I am not able to use the render hook. All I get is the default image tag rendered by the builtin code.
I tried several import configurations.
What do I miss?

There is a typo of the hook filepath, it should be layouts/_default/_markup rather than layouts/_defaults/_markup.

1 Like

Thanks a lot. I updated my repo and now it works.

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