Accessing site variables in Hugo render hooks

To access site variables inside of a Hugo render hook it should be prepended with .Page.

For example to access BaseURL instead of

{{ .Site.BaseURL }}

you shoud use

{{ .Page.Site.BaseURL }}

https://discourse.gohugo.io/t/render-hook-templates-and-site-variables/33128

Edit this page on GitHub