{{- $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 := "" }} {{- if and .Title (not (eq .Title .Site.Title)) }} {{- $title = printf "%s %s " .Title (default "::" .Site.Params.titleSeparator) }} {{- end }} {{- $title = printf "%s%s" $title .Site.Title }}