{{- partial "head/ga" . -}} {{- block "headTpl" . -}}{{- end -}} {{- $data_i18_cn := $.Scratch.Get "data_i18_cn" -}} {{- $no_footer := $.Scratch.Get "no_footer" -}} {{ block "title" . }}{{- .Title -}}{{ end }} | {{- if and $data_i18_cn (ne ($.Scratch.Get "nav_active") "docs") -}}PingCAP {{- else -}} {{ $.Scratch.Get "metaTitle" }} {{- end -}} {{- partial "head/meta-seo" . -}} {{- partial "head/preload-assets" . -}} {{- partial "head/preload-css" (dict "href" "/css/main.css") -}} {{- partial "head/preload-css" (dict "href" "https://download.pingcap.com/style/docsearch.min.css") -}} {{- partial "tracking-code/ga-events-js.html" -}} {{ $data_i18_cn := $.Scratch.Get "data_i18_cn" }} {{ $homepage := $.Scratch.Get "homepage" }} {{ $.Scratch.Set "tidb_stable_version" .Site.Params.versions.docs.tidb_stable_version }} {{ $.Scratch.Set "tidb_total_versions" .Site.Params.versions.docs.tidb_total_versions }} {{ $.Scratch.Set "operator_stable_version" .Site.Params.versions.docs.operator_stable_version }} {{ $.Scratch.Set "operator_total_versions" .Site.Params.versions.docs.operator_total_versions }} {{ $.Scratch.Set "dm_stable_version" .Site.Params.versions.docs.dm_stable_version }} {{ $.Scratch.Set "dm_total_versions" .Site.Params.versions.docs.dm_total_versions }}
{{- if $homepage -}} {{- partial "layout/release-banner" . -}} {{- end -}} {{- if $data_i18_cn -}} {{- partial "layout/header-cn" . -}} {{- partial "layout/mobile-sidebar-cn" . -}} {{- else -}} {{- partial "layout/header" . -}} {{- partial "layout/mobile-sidebar" . -}} {{- end -}} {{- block "main" . -}}{{- end -}} {{- if $data_i18_cn -}} {{- if not $no_footer -}} {{- partial "layout/footer-cn" . -}} {{- end -}} {{- else -}} {{- partial "layout/footer" . -}} {{- end -}} {{- partial "common/back-to-top.html" -}}
{{- block "footJS" . -}}{{- end -}}