From 5d37a104c4a413df04e4b0fbcfe6cb026cd52136 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 16 May 2025 15:03:14 +0800 Subject: perf: replace tocbot with statically generated toc Generate TOC with Hugo's built-in {{ .TableOfContents }} and add minimal script to implement collapsible list and active styles. Encapsulate TOC as a component where all JavaSript and CSS is in one place with HTML. Configure markup. Former-commit-id: 4b4629edb733d5ebd6485755fd2f63b0457f62c8 --- assets/css/components/_animation.scss | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'assets/css/components/_animation.scss') diff --git a/assets/css/components/_animation.scss b/assets/css/components/_animation.scss index 039de17e..8431a997 100644 --- a/assets/css/components/_animation.scss +++ b/assets/css/components/_animation.scss @@ -1,3 +1,9 @@ +/* link scroll */ + +html { + scroll-behavior: smooth; +} + /* page transition */ @view-transition { -- cgit v1.2.3