{{ partial "html-meta.html" . -}}
{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}
{{ with .Site.Params.favicon -}}
{{ end -}}
{{ with .Site.Menus.parent -}}
{{ range . -}}
{{ .Name }}
{{ end -}}
{{ end -}}
{{ .Site.Title }}
{{- if .Site.Params.subtitle }}
{{ .Site.Params.subtitle }}
{{- end }}
{{- range .Site.Menus.main -}}
{{ .Name }}
{{- end -}} {{ if isset site.Params "search" -}} {{ if eq site.Params.Search "baidu" -}} {{ partial "search.html" (dict "url" "https://www.baidu.com/s" "key" "wd") -}} {{ else if eq site.Params.Search "google" -}} {{ partial "search.html" (dict "url" "https://www.google.com/search" "key" "q") -}} {{ else if eq site.Params.Search "bing" -}} {{ partial "search.html" (dict "url" "https://www.bing.com/search" "key" "q") -}} {{ else if eq site.Params.Search "duckduckgo" -}} {{ partial "search.html" (dict "url" "https://www.duckduckgo.com/" "key" "q") -}} {{ else -}} {{ errorf "Unknown 'Site.Params.Search' value '%s'! Only 'baidu' is supported now." site.Params.Search -}} {{ end -}} {{ end -}}
{{ block "main" . }}{{- end }}
{{ template "_internal/google_analytics.html" . -}} {{ partial "github-corner.html" . -}} {{ partial "external-links.html" . -}}