Skip to content

Commit

Permalink
define TOC title only for the first instance of TOC and not for TOC o…
Browse files Browse the repository at this point in the history
…n next pages
  • Loading branch information
yihui committed Aug 24, 2024
1 parent d01f92b commit 9ba446c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css/pages.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
border: none;
padding: 0;
margin-left: auto;
&::before {
&:not(.pagesjs-page:has(#TOC) ~ .pagesjs-page *)::before {
content: "Contents";
display: block;
font-weight: bold;
Expand Down

0 comments on commit 9ba446c

Please sign in to comment.