hexo-theme-cactus
hexo-theme-cactus copied to clipboard
Why is the H1 title not displayed on the right table of contents?
<h1>
is used for the title of the post, therefore subtitles inside the post should start from <h2>
.
Thanks for the reply @foxB612, although I do not think that answers the question.
I decided not to include the blog post's title in the table of contents because of two reasons:
- By not including the blog post title, you save space to display another level in the table of contents. Each level is displayed in a smaller font. If you would include the blog post title, the h3 level would already be hard to read.
- The main function of the table of contents is to make it easy to scroll to a specific section. There is already a button in the navigation menu to scroll to the top of the page (i.e., the location of the H1 title)
Thanks for you answer 👍