{% macro math() %} {% if page.extra.math or section.extra.math or config.extra.math %} {% if config.extra.library and config.extra.library == "mathjax" %} {% else %} {% endif %} {% endif %} {% endmacro %}