Skip to content

Commit c9d3840

Browse files
committed
add ToC
1 parent 1605572 commit c9d3840

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

assets/css/main.css

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -421,25 +421,13 @@ blockquote > :last-child {
421421
border-radius: var(--border-radius);
422422
}
423423

424-
.toc h2 {
425-
margin: 0 0 var(--spacing-sm) 0;
426-
font-weight: bold;
427-
font-size: 0.95em;
428-
}
429-
430-
.toc .toc-content ul {
431-
list-style: none;
432-
margin: 0;
433-
padding-left: 1em;
434-
}
435-
436424
.toc .toc-content a {
437425
text-decoration: none;
438426
color: var(--color-text-primary);
439427
}
440428

441-
.toc .toc-content a:hover {
442-
text-decoration: underline;
429+
.toc .toc-content ol li {
430+
list-style-type: disc !important;
443431
}
444432

445433
@media (max-width: 600px) {

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1>{{ .Title }}</h1>
55
{{/* Table of Contents: render only when the page has one */}}
66
{{ if .TableOfContents }}
77
<nav class="toc">
8-
<h2>Table of contents</h2>
8+
<strong>Table of contents</strong>
99
<div class="toc-content">
1010
{{ .TableOfContents }}
1111
</div>

0 commit comments

Comments
 (0)