Skip to content

Wrong page titles in combination with jekyll-datapage-generator #157

@daysleeperrr

Description

@daysleeperrr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions