diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index c497a95..31b2018 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -62,8 +62,14 @@ /* Content formatting */ -#table-of-contents h2 { - font-size: 20px; +#table-of-contents { + background-color: #222; + padding: 8px 20px; + border-radius: 5px; +} + +#table-of-contents summary { + cursor: pointer; } .content, footer { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 86d9164..dbdae26 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,13 +10,13 @@ {{ if .Params.Toc }}
-

{{ i18n "table_of_contents" }}

- {{ .TableOfContents }} +
+ {{ i18n "table_of_contents" }} + {{ .TableOfContents }} +
{{ end }} -
- {{ with .Resources.GetMatch "feature" }}
{{ partial "figure.html" . }}