What are the uses of $ in Hugo

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;

  1. {{ $var := $ }} to assign global context to a variable
  2. {{ partial "page/head" $ }} to pass global context to a template

If the above is not valid what is the way to achieve it?