{{ $.Scratch.Add "title" "" }} {{ if eq .Type "archives" }} {{ $.Scratch.Set "title" "Archives" }} {{ else if ne .Title .Site.Title }} {{ $.Scratch.Set "title" .Title }} {{ end }}