From c8b9917b111c5a0d70a3656cda64d442e9856849 Mon Sep 17 00:00:00 2001 From: fechin Date: Tue, 3 Jan 2023 18:22:27 +0800 Subject: [PATCH] Added `KaTeX` plugin --- themes/coo/layout/_partial/scripts.ejs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/themes/coo/layout/_partial/scripts.ejs b/themes/coo/layout/_partial/scripts.ejs index e85ad64..3152ded 100644 --- a/themes/coo/layout/_partial/scripts.ejs +++ b/themes/coo/layout/_partial/scripts.ejs @@ -13,4 +13,26 @@ } }); +<% } %> + +<% if (is_post() && page.plugins != undefined && page.plugins.includes("katex") ){ %> + + + <% } %> \ No newline at end of file