I’m implementing the TOC feature, wanting the table of contents to generate h2s that are children of separate divs (see picture).
As per Finsweet tutorial, I’m giving following values to divs: contents
and contents-2
.
Questions:
- Tutorial speaks of stacked rich-text-blocks as wrappers of headings. Is it possible to have divs being the wrappers for the h2s, like in my case?
- If it is, what should I give values
link
andlink-2
to ? Should I create a new link block with text block inside and give link-2 to this?
Asking as what I’m attempting to do doesn’t seem to work, unless I’m missing something.
In case it’s needed, here’s the build:
Thank you so much!