1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 11:52:11 +00:00

Hide ToC on print

This commit is contained in:
Rohan Kumar 2024-05-01 12:28:35 -04:00
parent 58717f2d47
commit cbd0b6d1fb
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,9 @@
}
/* Hide screen-only content */
/* Table of Contents is useless in print layouts without page numbers,
* which I haven't implemented yet */
#toc,
[href="#h1"], /* Skip link */
[role="doc-backlink"], /* can't navigate back on print. */
aside:not([role="note"]),

View file

@ -1,4 +1,4 @@
<details>
<details id="toc">
<summary>Toggle table of contents</summary>
<h2>Table of Contents</h2>{{.Page.TableOfContents}}
</details>