But in index.html, it can not expose an variable which is dynamically decided by the post pages to the page head.html which it include.
Inserting an if statment to index.html to parse the posts' excerpts may help.
OR
Record to site.data files when each post needs mathjax.
OR
In any case, inject the javascript statment of mathjax.
In your
head.html
page:But in
index.html
, it can not expose an variable which is dynamically decided bythe post pages
to the pagehead.html
which it include.Inserting an
if statment
toindex.html
to parse the posts' excerpts may help. OR Record to site.data files when each post needs mathjax. OR In any case, inject the javascript statment of mathjax.