1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00
seirdy.one/layouts/shortcodes/toc.html
Rohan Kumar 41b66d8ceb
Put TOC heading inside the TOC <nav>
Putting the heading in the navigation element makes the structure more
logical and matches the behavior of most other websites.

Move it before the introduction in my web best practices post.
2022-04-09 08:51:10 -07:00

5 lines
105 B
HTML

<aside>
<section role="doc-toc">
<h2>Table of Contents</h2>{{.Page.TableOfContents}}
</section>
</aside>