Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-05-18 17:27:01 +0300
committerGitHub <noreply@github.com>2020-05-18 17:27:01 +0300
commit9dd5230204491e2ac61514ae22079ff0b6cd4ec9 (patch)
treeb4cd737f554e79a845ab126f81e04ac60c8c773f /layouts/posts
parent8f53c999e524d6b4e5ff912c83c7be0ca9d36e62 (diff)
feat(TOC): add keepStatic param for TOC (#372)
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 814d37c..86b60bf 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -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>