Skip to content

Is anchorjs working properly? #188

@leebrian

Description

@leebrian

I followed the instructions and uncommented the line in my _config.yml that I think enabled anchorJS...

anchor_js_targets: [h1, h2, h3, h4, h5, h6]

When I generate my site, I do not see the anchor links after my headers.

Looking at the generated source, I see

<script src="/source-code/assets/js/vendor/anchor.min.js"></script>

but I never see a call to anchors.add()

I might be misunderstanding how this is used. Do you have a link to a site using this feature so I can figure out what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions