{{- $format := partial "get-format.hugo" . }} {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} {{- $basename := "index" }} {{- if eq $outputFormat "searchpage" }} {{- $basename = partial "BaseName.hugo" $format.RelPermalink }} {{- end }}
{{- partial "meta.html" . }} {{- $page := . }} {{- $link := "" }} {{- $title := .Title }} {{- if eq $outputFormat "searchpage" }} {{- $title = T "Search" }} {{- else if eq .Kind "term" }} {{- $title = i18n .Data.Singular }} {{- if not $title }} {{- $title = .Data.Singular | humanize }} {{- end }} {{- $title = printf "%s %s %s" .Title (default "::" .Site.Params.titleSeparator) $title }} {{- end }} {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} {{- end }}