From 32289fe2e74dd3a7b9631d8b2fc55bc07963618e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 19 Sep 2020 17:03:27 +0530 Subject: [PATCH] toc : use newer toc partial and indent elements fixes : https://github.com/adityatelange/hugo-PaperMod/issues/2 --- assets/css/main.css | 6 +++++- layouts/_default/single.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index d4fda09..219d52d 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 0af5019..8c037ff 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -26,7 +26,7 @@
- {{ .TableOfContents }} + {{ partial "toc.html" . }}