We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ceb78e commit 86d1197Copy full SHA for 86d1197
assets/scss/custom.scss
@@ -39,7 +39,7 @@ blockquote {
39
}
40
/* 移动端隐藏目录 */
41
@media (max-width: 1024px) {
42
- .absolute.left-0 {
+ .toc.left-0 {
43
display: none;
44
45
layouts/blog/single.html
@@ -47,7 +47,7 @@ <h1 class="h2 mb-4">
47
48
<div class="relative">
49
<!-- 独立 TOC 容器:固定在左侧 -->
50
- <div class="absolute left-0 top-0 h-full lg:w-3/12 md:w-4/12 pr-4" style="transform: translateX(-100%)">
+ <div class="absolute left-0 top-0 h-full lg:w-3/12 md:w-4/12 pr-4 toc" style="transform: translateX(-100%)">
51
<div class="sticky top-20 overflow-y-auto max-h-[80vh] pe-4">
52
{{ partial "toc.html" (dict "Class" "blog" "Collapsed" false "TableOfContents" .TableOfContents ) }}
53
</div>
0 commit comments