Skip to content
Snippets Groups Projects
Commit 9ffcdf35 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4210 Add mathjax.js to libraries and attach to page

parent bef55f12
No related branches found
No related tags found
1 merge request!39Feature/istwcms 4210 l26yan add mathjax
......@@ -33,3 +33,6 @@ uw_layout_inverted_l_left:
css:
theme:
layouts/uw-inverted-l-left/uw-layout-inverted-l-left.css: {}
uw_mathjax:
js:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML: { type: external, minified: true }
......@@ -259,6 +259,14 @@ function uw_cfg_common_preprocess_node(&$variables) {
}
}
/**
* Implements hook_page_attachments().
*/
function uw_cfg_common_page_attachments(array &$page) {
$page['#attached']['library'][] = 'uw_cfg_common/uw_mathjax';
}
/**
* Implements hook_form_FORM_ID_alter().
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment