-
-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Hello all. Thanks for the great plugin, I've been using it extensively across sites and it works great. However I ran into an issue. Not sure to report here or in the other project, as it seems to be an issue occurring when two plugins are used together.
I'm using jekyll-datapage-generator to generate pages based on a YAML datafile. These pages include a Jekyll-TOS element. Let's assume my data file has a list of countries:
AF:
country_name: Afghanistan
AL:
country_name: Albania
The page has h1/h2/h3's with the country name in it.
Somehow, TOC shows the country name of the previously generated country. So in this example, the Albania page has an H1 with Albania in it, but TOC will show the Afghanistan title. In addition, TOC doesn't add the href="#..." attribute that make the items clickable.
Is there any way to resolve this problem? I'm happy to provide an example if needed.