getgrav / grav-plugin-anchors

Grav Anchors Plugin
https://getgrav.org
MIT License
11 stars 7 forks source link

Cannot disable anchors in a specific page. #24

Open rodrigogiraoserrao opened 4 years ago

rodrigogiraoserrao commented 4 years ago

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 commented 1 year ago

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