{{ with .Params.hide_example }} {{ else }}
In the config.yaml or config.toml file you would have something like

[params] name = 'Simba' Then in the partial you use the variables with brackets like this {{ .Site.Params.name }} or like {{ now.Year }} Check out this guide https://cloudcannon.com/tutorials/hugo-beginner-tutorial/hugo-templating-basics/

{{ end }}