{{ $numOfParams := ( len .Params ) }} {{ $avatar := "avatar.jpg" }} {{ if eq $numOfParams 1 }}{{ $avatar := .Get 1 }}{{ end }}
{{ if eq $numOfParams 2 }}{{ end }} {{ $path := "/images/" }} {{ with $.Site.Params.imagespath }} {{ $path := ( . ) }}{{ end }} {{ if eq $numOfParams 2 }}{{ end }}