diff options
-rw-r--r-- | layouts/partials/article.html | 3 | ||||
-rw-r--r-- | static/css/style.css | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/article.html b/layouts/partials/article.html index de3225e..fb46dc6 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -20,6 +20,9 @@ <!-- Article Title --> <h1 class="title">{{ .Title }}</h1> +<!-- Table of Contents --> +{{ .TableOfContents }} + <div class="content"> <!-- Article Content --> diff --git a/static/css/style.css b/static/css/style.css index d8faab9..00932fe 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,3 +1,26 @@ +#TableOfContents { + background: transparent; + margin-bottom: 2rem; + font-size: 1.1em; +} + +#TableOfContents a { + color: #b52323; +} + +#TableOfContents a:hover { + border-bottom: 1px solid #b52323; +} + +#TableOfContents a + ul { + padding-left:2em; +} + +#TableOfContents a + ul strong { + color: #b52323; + font-weight: 620; +} + .card, .highlight, .highlight pre, |