{{define "base"}} {{if .Path}}{{.Path}} - {{end}}{{.Cfg.Name}} {{if .Path}} {{template "viewer" .}} {{else}} {{template "index" .}} {{end}} {{end}}