chore: use utils/title to get title

This commit is contained in:
Xin 2024-04-30 23:02:36 +01:00
parent 3a2ce0b5c0
commit a4bfa2d97e

View File

@ -13,7 +13,7 @@
{{- define "partials/sidebar/section-walk" -}} {{- define "partials/sidebar/section-walk" -}}
{{- with . -}} {{- with . -}}
{ {
"title": "{{ .LinkTitle | default .File.BaseFileName }}", "title": "{{ partial "utils/title" . }}",
"link": "{{ .RelPermalink }}", "link": "{{ .RelPermalink }}",
"toc": {{ partial "sidebar/section-page-toc" . }}, "toc": {{ partial "sidebar/section-page-toc" . }},
"open": {{ .Params.sidebar.open | default false }} "open": {{ .Params.sidebar.open | default false }}