diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-18 18:59:45 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-18 18:59:45 +0800 |
| commit | f084ea069f8336f8b257366c7c06cbaf15012565 (patch) | |
| tree | ad583800b89af6c7b83c1f6cab07f455168ba581 /functions.php | |
| parent | 92acac9c900238620294e6a6b102b68db128d576 (diff) | |
:flashlight: Perf: 用Pangu.php 替换 Pangu.js
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.php b/functions.php index fc2f721..4d8ba42 100644 --- a/functions.php +++ b/functions.php @@ -3,6 +3,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; require_once('libs/Utils.php'); require_once('libs/Matcha.php'); +Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = array('Matcha','parseContent'); +Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = array('Matcha','parseContent'); + function themeConfig($form) { $favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, 'favicon.png', _t('浏览器图标(Favicon)'), _t('在这里填入一个指向图片文件的 url 来自定义浏览器标签栏显示的图标,留空则默认为 favicon.ico')); $form->addInput($favicon); |
