diff --git a/settings.yaml b/settings.yaml index 53f6acf2..5f89488c 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1202,6 +1202,15 @@ spec: - label: 关闭 value: false help: 文章主色匹配图片颜色 + - $formkit: radio + name: opacity + label: 目录模糊效果 + value: true + options: + - label: 打开 + value: true + - label: 关闭 + value: false - $formkit: group name: aiDescription label: 文章 AI 摘要 diff --git a/templates/modules/variables/layout.html b/templates/modules/variables/layout.html index 09f7220c..3a19a316 100644 --- a/templates/modules/variables/layout.html +++ b/templates/modules/variables/layout.html @@ -32,4 +32,10 @@ [data-theme=light] { --halo-search-widget-color-result-item-title : #4B5563 } + [# th:if="${!theme.config.post.opacity}"] + #aside-content #card-toc .toc-content a.toc-link:not(.active) { + opacity: 1; + filter: blur(0px); + } + [/] \ No newline at end of file