Custom render-codeblock-go-template.html not called

I try to use a custom render hook defined at layouts\_markup\render-codeblock-go-template.html

But it is not called. Thought it might be because it’s a known language for Chroma. But testing a little it turned out that

  • render-codeblock-x-y.html won’t be called, too.
  • I can override known style render-codeblock-xml.html

looks like language names with a dash inside won’t work.

Do I miss something here?

hugo v0.148.1

p.s. I can use a conditional in the generic render-codeblock.html just wanted to make sure if it should work with the hook

https://github.com/gohugoio/hugo/issues/13864

1 Like

Fixed with v0.148.2 and successfully tested

this one includes an additional fix, see github#13864#issuecomment-3112329300

render hooks are now forced to start with render-

:100: thx, @jmooring @bep

1 Like

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