diff --git a/assets/css/main.css b/assets/css/main.css index d4fda099..219d52dc 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -70,4 +70,8 @@ border-left: 2px solid; margin: 20px; padding: 10px 40px; -} \ No newline at end of file +} + +.toc li ul { + margin-left: var(--gap); +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0af5019b..8c037ffc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -26,7 +26,7 @@
- {{ .TableOfContents }} + {{ partial "toc.html" . }}