{{ $title := "" }}
{{ with .Params.seo.title }}
  {{ $title = replace . "{brand}" site.Title }}
{{ else }}
  {{ $title = .Title | default site.Title }}
  {{ if ne $title site.Title }}{{ $title = printf "%s | %s" $title site.Title }}{{ end }}
{{ end }}
{{ return $title }}
