{{ $numOfParams := ( len .Params ) }} {{ $avatar := "avatar.jpg" }} {{ if eq $numOfParams 1 }}{{ $avatar := .Get 1 }}{{ end }}