diff --git a/assets/css/main.css b/assets/css/main.css index 126b1bf9..b1874d7c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -44,4 +44,10 @@ margin-left: auto; padding-left: 18px; padding-right: 16px; +} + +.toc { + border-bottom: 1px solid var(--border); + font-size: 20px; + font-weight: 500; } \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2b9ecc7a..a2775fcb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,6 +12,12 @@ {{- .Date.Format "January 2, 2006" -}} + {{ if .Params.ShowToc }} +
++ {{ end }}Table of Contents+ {{ .TableOfContents }} +