From 8fa86ba6c13335eed38e4dc65731bece92ce2f74 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 10 Jun 2022 10:41:18 -0700 Subject: Update Readme, Add katex_bundle --- templates/macros/head.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'templates/macros/head.html') diff --git a/templates/macros/head.html b/templates/macros/head.html index 2df6fef..e5ee0ac 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -16,7 +16,7 @@ {%- if i.url is matching("^http[s]?://") %} {%- else %} - + {%- endif %} {%- endfor %}{%- endif %} @@ -29,7 +29,7 @@ {%- if config.extra.katex_css %}{%- if config.extra.katex_css is matching("^http[s]?://") %} {%- else %} - + {%- endif %}{%- endif %} {%- endif %} @@ -130,6 +130,10 @@ {#- https://github.com/KaTeX/KaTeX/tree/main/contrib/mathtex-script-type/ #} {%- if config.extra.math or page.extra.math %} +{%- if config.extra.katex_bundle %} + +{%- else %} + {%- if config.extra.katex_js %}{%- if config.extra.katex_js is matching("^http[s]?://") %} {%- else %} @@ -142,7 +146,7 @@ {%- endif %}{%- endif %} -{%- if config.extra.math_auto_render or page.extra.math_auto_render %} + {%- if config.extra.math_auto_render or page.extra.math_auto_render %} {%- if config.extra.katex_autorender_js %} {%- if config.extra.katex_autorender_js is matching("^http[s]?://") %} @@ -151,6 +155,7 @@ {%- endif %} {%- endif %} + {%- endif %} {%- endif %} {%- endif %} -- cgit v1.3.1