Many thanks for the answer. I am new to go
, go templates
and hugo
.
This is a follow-up question on Pass Global Context to Partial | Capture Global Context:
I want to know if this is valid;
-
{{ $var := $ }}
to assign global context to a variable -
{{ partial "page/head" $ }}
to pass global context to a template
If the above is not valid what is the way to achieve it?