Skip to content

Commit c9298c9

Browse files
committed
Fix: 修复目录相关配置错误
1 parent 2a67ddd commit c9298c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/section/projects.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
99
{{- $data := index .Site.Data (printf "projects.%v" .Language) | default .Site.Data.projects -}}
1010
{{- $toc := .Scratch.Get "toc" -}}
11-
{{- $tableOfContents := .Fragments.ToHTML ($toc.startLevel | int) ($toc.endLevel | int) false -}}
11+
{{- $tableOfContents := .Fragments.ToHTML ($toc.startlevel | int) ($toc.endlevel | int) false -}}
1212
{{- $contentToc := ne $tableOfContents `<nav id="TableOfContents"></nav>` -}}
1313
{{- $hasToc := $contentToc | or (gt (len $data) 0) | or (gt .Pages.Len 0) -}}
1414
{{- $showToc := $toc.enable | and $hasToc -}}
@@ -70,7 +70,7 @@ <h1 class="single-title animate__animated animate__pulse animate__faster">
7070
{{- $tableOfContents = replaceRE "</nav>" (printf "<ul>%v</ul></nav>" .) $tableOfContents -}}
7171
{{- end -}}
7272
{{- end -}}
73-
<div class="details toc{{ with $params.password }} encrypted-hidden{{ end }}" id="toc-static" data-kept="{{ if $toc.keepStatic }}true{{ else }}false{{ end }}">
73+
<div class="details toc{{ with $params.password }} encrypted-hidden{{ end }}" id="toc-static" data-kept="{{ if $toc.keepstatic }}true{{ else }}false{{ end }}">
7474
<div class="details-summary toc-title">
7575
<span>{{ T "single.contents" }}</span>
7676
<span>{{ dict "Class" "details-icon fa-solid fa-angle-right" | partial "plugin/icon.html" }}</span>

0 commit comments

Comments
 (0)