What does the - mean in {{-

I see this in the docs:

{{- partial "footer.html" . -}}

There’s a dash after the braces. What does this dash do because I never use the dash but was wondering if it’s significant?

Hi,

It’s for trimming whitespace: https://gohugo.io/templates/introduction/#whitespace

2 Likes