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

A way to only include the JS/CSS on pages using math? #1

Open
VorpalBlade opened this issue May 5, 2019 · 0 comments
Open

A way to only include the JS/CSS on pages using math? #1

VorpalBlade opened this issue May 5, 2019 · 0 comments

Comments

@VorpalBlade
Copy link

Would it be feasible for the plugin to set a variable of some sort to let the template know if math needs to be included on the current page. This would avoid loading KaTeX or MathJax (or whatever you use) on pages that don't use math.

It would appear to be simple enough for articles & pages, but I guess it could get tricky on index pages that include part of the content of articles.

@VorpalBlade VorpalBlade changed the title A way to only include this the JS/CSS on pages using math? A way to only include the JS/CSS on pages using math? May 11, 2019
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