feat(TOC): add keepStatic param for TOC (#372)

This commit is contained in:
Dillon
2020-05-18 22:27:01 +08:00
committed by GitHub
parent 8f53c999e5
commit 9dd5230204
13 changed files with 37 additions and 19 deletions

View File

@@ -72,7 +72,7 @@
{{- /* Static TOC */ -}}
{{- if ne $toc.enable false -}}
<div class="details toc" id="toc-static">
<div class="details toc" id="toc-static" kept="{{ if $toc.keepStatic }}true{{ end }}">
<div class="details-summary toc-title">
<span>{{ T "contents" }}</span>
<span><i class="details-icon fas fa-angle-right"></i></span>