Hi, I’m puzzled about how to access a GitInfo
variable from within a partial included from baseof
. It seems like GitInfo is only accessible from within a Page template (not partials or List templates or baseof templates)?
Is there no way to access e.g. {{ .GitInfo.AbbreviatedHash }}
from my single.html
template, save it in a block, and then reference that block’s value from a partial included by baseof.html
(e.g. head.html)? If not, can someone please clarify why?