Render-link.html not firing from .RenderString

{{ readFile “SUMMARY.md” | .RenderString }} doesn’t seem to be firing the render-link.html hook.

Need Help.

EDITED

Added a test repo to help describe my problem


I recreated this problem in a git repo.

If you look in Sidebar.html in themes/hugo-whisper-theme/layouts/partials I’m reading a file and doing .RenderString. my render-hook doesn’t seem to be getting called when calling hugo Look at the index.html in the v1.5 folder that gets generated and the resulting sidebar has no div

Please read Requesting Help

Fair Enough. I will get a git repo to recreate this.


I recreated this problem in a git repo.

If you look in Sidebar.html in themes/hugo-whisper-theme/layouts/partials I’m reading a file and doing .RenderString. my render-hook doesn’t seem to be getting called when calling hugo Look at the index.html in the v1.5 folder that gets generated and the resulting sidebar has no div

It does work when running hugo server but not when building the site using hugo

Not commenting on your actual problem, but I would just bypass it and use GetPage. Store your markdown in headless bundles/sections or something.

So that works! Thanks. There does still seem to be an issue with the .RenderString but i can bypass it. So I’m good. Thanks!

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