What does the - mean in {{-

#1

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?

0 Likes

#2

Hi,

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

2 Likes