diff --git a/src/_includes/main/links.njk b/src/_includes/main/links.njk index cd0fbf24..8725ab0a 100644 --- a/src/_includes/main/links.njk +++ b/src/_includes/main/links.njk @@ -30,8 +30,10 @@ isContentDivided: true {% headingAnchor 2 %}{{ group.data.title }}{% endheadingAnchor %} {% if group.data.toc %} -

Table of Contents

- {{ group.templateContent | toc | safe }} +
+

Table of Contents

+ {{ group.templateContent | toc | safe }} +
{% endif %} {{ group.templateContent | safe }} diff --git a/src/assets/css/components.css b/src/assets/css/components.css index 0e647803..ac8d34be 100644 --- a/src/assets/css/components.css +++ b/src/assets/css/components.css @@ -195,6 +195,11 @@ p + .adoptables { margin-top: 1em; } outline: 0.2em solid var(--clr-title-border); outline-offset: 0.15em; } + +.tabwrap__toc { + background-color: var(--clr-quote-bg); + padding: 1em 1em 0.5em; +} .tab__back { margin-top: 3em; } /* Web ring */