grav-plugin-highlight icon indicating copy to clipboard operation
grav-plugin-highlight copied to clipboard

How to disable this plugin on error pages?

Open Lamecarlate opened this issue 1 year ago • 0 comments

Hello!

Is there a way to disable this plugin on error pages?

I created a error folder in my pages, with template: error, as my theme has a error.html.twig template. It's working great to replace the error page from the default Error plugin. But, even if I put

highlight:
    enabled: false

in the frontmatter, the js and css of Highlight are loaded.

If I make this error page routable and go to mysite.xyz/error, I can see that the js and css are not loaded.

Maybe I'm not using the right way to customise my error page, but I found close to nothing about that in the documentation :(

Thanks in advance.

Lamecarlate avatar May 18 '24 13:05 Lamecarlate