add doc
This commit is contained in:
1 parent
16ef430a39
commit
792897291b
445 files changed
+30584
-5
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{% if theme.math.enable %}
|
||||
{% set is_index_has_math = false %}
|
||||
|
||||
{# At home, check if there has `mathjax: true` post #}
|
||||
{% if is_home() %}
|
||||
{% for post in page.posts %}
|
||||
{% if post.mathjax and not is_index_has_math %}
|
||||
{% set is_index_has_math = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if not theme.math.per_page or (is_index_has_math or page.mathjax) %}
|
||||
{% if theme.math.engine == 'mathjax' %}
|
||||
{% include 'mathjax.swig' %}
|
||||
{% elif theme.math.engine == 'katex' %}
|
||||
{% include 'katex.swig' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user