From f084ea069f8336f8b257366c7c06cbaf15012565 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Thu, 18 Aug 2022 18:59:45 +0800 Subject: =?UTF-8?q?:flashlight:=20Perf:=20=E7=94=A8Pangu.php=20=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=20Pangu.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions.php') 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); -- cgit v1.2.3