Best practice for writing clean curleys

I know it doesn’t make a difference in most cases, however I wanted to know what the best practice was and what people generally do do you guys put a space between the {{.Site.BaseURL}} or {{ .Site.BaseURL }}?

I like it with the space, but I don’t think functionally that it matters.
What does matter, is where you put them. A skillful placement amongst your tags along with some use of the hyphen to remove space on that side, will help.

{{ .something -}}
{{- .something }}
{{- .something -}}
1 Like

If you write it your way it’s a) easier to identify in other html code and b) you can specifically search for it because of the space after or in front of the curlies.

1 Like