{{- define "headTpl" -}} {{- partial "head/preload-css" (dict "href" "https://download.pingcap.com/style/github-markdown.css") -}} {{- partial "head/preload-css" (dict "href" "/css/doc.css") -}} {{- if and (isset .Params "category") (eq .Params.category "case") -}} {{$.Scratch.Set "data_i18_link" "/success-stories" }} {{$.Scratch.Set "nav_active" "cases"}} {{- else -}} {{$.Scratch.Set "data_i18_link" "/blog" }} {{$.Scratch.Set "nav_active" "blog"}} {{- end -}} {{$.Scratch.Set "data_i18_cn" true }} {{- end -}} {{- define "main" -}}
{{- if and (isset .Params "category") (eq .Params.category "case") -}} {{- partial "archives/sticky-tree.html" (dict "tree" .Site.Data.cases_cn_toc "title" "用户案例") -}} {{- else -}} {{- $posts := where (where (where (where (where .Site.Pages "Section" "blog-cn") ".Params.title" "!=" nil) ".Params.category" "!=" "case") ".Params.category" "!=" "community reading") ".Params.category" "!=" "devcon" -}} {{- partial "navs/tags-nav.html" (dict "type" "single" "title" "热门标签" "posts" $posts "rss" "/blog-cn/index.xml" "prefixHref" "/blog-cn/" "global" .) -}} {{- end -}}

{{- .Title -}}

{{- .Content -}}
{{ if .Params.katex }}{{ partial "archives/math.html" . }}{{ end }}
{{- partial "archives/post-share-cn.html" . -}}
{{- end -}} {{- define "footJS" -}} {{- end -}}