What does the hyphen do here? {{-

Sometimes I see {{- instead of the more common {{.

I have searched the documentation but have not found anything.

So what does for example:

{{- .Site.Title -}}

Removes white space


1 Like

Thanks for the info and the new link, and sorry for my ignorance! :relieved:

1 Like

No need to apologize :slight_smile: Everyone’s here to learn and share.

I just learnt about this recently… Helps make the templates more readable.


Agreed. No apologies needed. Please let the community know if you have anymore questions!

1 Like