Problem/Motivation

The title of "Table of contents title" is presented with H3 structure and this is not good for a SEO hierarchy if the H1 tag is above it.

Steps to reproduce

Whenever an index is generated

Proposed resolution

Replace H3 tag with a DIV tag.

OPEN AND EDIT: modules > contrib > toc_api > templates > toc-tree.html.twig
SEARCH: h3 {{ tree.title }} /h3
REPLACE WITH: div class="toc-title" {{ tree.title }} /div

OPEN AND EDIT: modules > contrib > toc_api > css > toc.tree.css
SEARCH: .node .toc-tree {
border: 1px solid #ccc;
padding: 0 1em;
margin: 1em 0;
}
ADD BELOW: .node .toc-title {
font-size: 18px;
font-weight: bold;
}

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork toc_api-3294155

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ReViJa created an issue. See original summary.

revija’s picture

Issue summary: View changes

I don't know if it helps, but it has helped me.

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Status: Active » Needs review

Addressed in accordance with the proposed resolution in #4. Please review

liam morland’s picture

Version: 8.x-1.2 » 8.x-1.x-dev
Status: Needs review » Closed (duplicate)
Related issues: +#2789105: Make TOC and title wrapper elements configurable