2025-2-26-fixed

This commit is contained in:
2025-02-26 09:16:07 +08:00
parent bf50b6c865
commit 4968d276dc
456 changed files with 27801 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
{%- if theme.math.mathjax.enable or theme.math.katex.enable %}
{%- set is_index_has_math = false %}
{# At home, check if there has `mathjax: true` post #}
{%- if is_home() and theme.math.per_page %}
{%- for post in page.posts.toArray() %}
{%- 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.mathjax.enable %}
{% include '_third-party/math/mathjax.swig' %}
{% elif theme.math.katex.enable %}
{% include '_third-party/math/katex.swig' %}
{%- endif %}
{%- endif %}
{%- endif %}