
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
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
Comment #2
revija CreditAttribution: revija commentedI don't know if it helps, but it has helped me.
Comment #5
immaculatexavier CreditAttribution: immaculatexavier as a volunteer commentedAddressed in accordance with the proposed resolution in #4. Please review
Comment #6
liam morland