diff options
| -rw-r--r-- | assets/css/main.css | 6 | ||||
| -rw-r--r-- | layouts/_default/single.html | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 126b1bf..b1874d7 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 2b9ecc7..a2775fc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,6 +12,12 @@ {{- .Date.Format "January 2, 2006" -}} </div> </header> + {{ if .Params.ShowToc }} + <blockquote> + <div class="toc">Table of Contents</div> + {{ .TableOfContents }} + </blockquote> + {{ end }} <div class="post-content">{{ .Content }}</div> {{- if .Params.tags }} <footer class="post-footer"> |
