diff --git a/invenio_theme/config.py b/invenio_theme/config.py index c7aca7e..77b27d0 100644 --- a/invenio_theme/config.py +++ b/invenio_theme/config.py @@ -182,3 +182,6 @@ }, } """Icon definitions per theme.""" + +THEME_MATHJAX_CDN = "" +"""MathJax configuration for rendering mathematical formulas.""" diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/page.html b/invenio_theme/templates/semantic-ui/invenio_theme/page.html index 1083455..54133c8 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/page.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/page.html @@ -115,6 +115,19 @@ {%- endblock body_inner %} {%- block javascript %} + + {% if config.THEME_MATHJAX_CDN %} + + + {% endif %} + {% include config.THEME_JAVASCRIPT_TEMPLATE %} {%- endblock javascript %}