Skip to content

Commit 954c29e

Browse files
committed
fix: 修改 TOC 对话框状态设置为 hasToc
1 parent b774233 commit 954c29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/projects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h2 class="toc-title{{ with $params.password }} encrypted-hidden{{ end }}">
227227

228228
{{- /* TOC Dialog */ -}}
229229
{{- if $showToc -}}
230-
{{- .Page.Store.Set "enableTocDialog" true -}}
230+
{{- .Page.Store.Set "hasToc" true -}}
231231
<dialog id="toc-dialog" aria-labelledby="toc-dialog-title" role="dialog">
232232
<div class="toc">
233233
<h2 class="toc-title">{{ T "single.contents" }}</h2>

0 commit comments

Comments
 (0)