Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot disable anchors in a specific page. #24

Open
rodrigogiraoserrao opened this issue Oct 28, 2020 · 1 comment
Open

Cannot disable anchors in a specific page. #24

rodrigogiraoserrao opened this issue Oct 28, 2020 · 1 comment

Comments

@rodrigogiraoserrao
Copy link

rodrigogiraoserrao commented Oct 28, 2020

I cannot disable anchorjs in my custom error 404 page.

You can find the exact page setup I'm using here: https://github.com/RojerGS/mathspp/tree/master/pages/error.
And you can test it by accessing a random route in my website, e.g. https://mathspp.com/agadfasdfasdfaff.

My frontmatter.yaml looks like this:

anchors:
    active: false
    enabled: false
http_response_code: 404
metadata:
    author: Rodrigo Girão Serrão
routable: false

and my default.en.md looks like this:

---
title: Error
---
<center><h1>Error 2×2×101</h1>

Woops. Looks like this page doesn't exist.
</center>

But for some reason, the anchor to the h1 title is there.

@rodrigogiraoserrao
Copy link
Author

Sorry for explicitly tagging you @rhukster but do you have any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant