Zalgorithm

Hugo PageInner links render hook field

Straight from the Hugo docs (pageinner-details) :

The primary use case for PageInner is to resolve links and page resources relative to an included Page. For example, create an “include” shortcode to compose a page from multiple content files, while preserving a global context for footnotes and the table of contents.

This doesn’t at all match my use case: notes / Link render hooks.

I think the section’s last paragraph explains what’s going on though:

PageInner falls back to the value of Page if not relevant, and always returns a value.

References

Hugo Documentation. “PageInner details.”, Last updated: December 19, 2025. https://gohugo.io/render-hooks/links/#pageinner-details .

Tags: