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

Adds support for Mathjax #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Adds support for Mathjax #2

wants to merge 1 commit into from

Conversation

EiffL
Copy link
Member

@EiffL EiffL commented Apr 6, 2023

This small PR fixes the import of the mathjax scripts.

This theme has a special feature which allows us to specify which scripts to loads as part of the layout files.

All we need to do is add this in layouts/base.html:

common-ext-js:
  - href: "https://polyfill.io/v3/polyfill.min.js?features=es6"
  - href: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"

and these scripts will be loaded in all pages which inherit from the base layout

@EiffL EiffL requested a review from tloredo April 6, 2023 20:46
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

Successfully merging this pull request may close these issues.

1 participant