GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

Table of Content Headline #1242

Open pagenstedt opened 9 months ago

pagenstedt commented 9 months ago

Feature Description

The table of content headline is formatted with h3. This is not logical, since it usually follows right to the h1. From SEO and page architecture point of view, it should be just formatted as bold paragraph.

bobmitro commented 9 months ago

The TOC is generated by the TinyMCE editor, which uses h3 tags in the header by default. However, you can easily modify it and make it more accessible by installing the Collapsible TOC plugin.

pagenstedt commented 9 months ago

The TOC is generated by the TinyMCE editor, which uses h3 tags in the header by default. However, you can easily modify it and make it more accessible by installing the Collapsible TOC plugin.

Thank you. I already had a look for the Premium TOC plugin. However, it does not allow to format the headline as p. I can only choose between different h levels.

bobmitro commented 9 months ago

From SEO and page architecture point of view, it should be just formatted as bold paragraph.

Why a paragraph? This is the TOC headline, so it would be more appropriate to use h1-h6 headings. Additionally, a div element, which is a block-level element, could also be employed. However, the headings provide more semantic structure to your document, making it easier to understand for both users and search engines, also the screen readers use heading elements to navigate through a document.