summaryrefslogtreecommitdiff
path: root/libs/Matcha.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-19 20:15:08 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-19 20:15:08 +0800
commit9b6f7023f6fc64cd12368d071d9f3daa3ced04b7 (patch)
tree6c383b12f3b81c4d69f5099c43216b8180ca6dfb /libs/Matcha.php
parentdf83919cf8844485f7f959c86b9f94e3387f5599 (diff)
:dizzy: Perf: 使用 Prism 替换 Highlight,并加入了一键复制代码功能
其中用到的 toast() 函数尚未完成
Diffstat (limited to 'libs/Matcha.php')
-rw-r--r--libs/Matcha.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/Matcha.php b/libs/Matcha.php
index b5286b0..0185cfc 100644
--- a/libs/Matcha.php
+++ b/libs/Matcha.php
@@ -23,7 +23,7 @@ class Matcha
*/
public static function linkCSS() {
//要引入的 css 文件名
- $includes=array("grid", "style", "normalize","bigfoot");
+ $includes=array("normalize", "prism", "grid", "style", "bigfoot");
foreach($includes as $value){
echo '<link rel="stylesheet" href="';
Utils::indexTheme('assets/'.$value.'.css');
@@ -61,7 +61,7 @@ class Matcha
*/
public static function script() {
//要引入的 js 文件名
- $includes=array("jquery.min","jquery.pjax.min","smoothscroll","nprogress.min","highlight.min","bigfoot","script");
+ $includes=array("jquery.min","jquery.pjax.min","smoothscroll","nprogress.min","prism","bigfoot","script");
foreach($includes as $value){
echo '<script src="';
Utils::indexTheme('assets/'.$value.'.js');