diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-16 00:56:08 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-16 00:56:08 +0800 |
| commit | 6ce3a26479ded9c578759c7dba9ce6e00aa7086d (patch) | |
| tree | d47973f9047ce2d573ad3c177bf5279bf57f3456 /functions.php | |
| parent | 0ce66b6aa0a7ed5fb6e193b47792f43771a72bb6 (diff) | |
:grimacing: Add: 文章缩略图
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 4dcc217..9c139c9 100644 --- a/functions.php +++ b/functions.php @@ -31,4 +31,10 @@ function themeFields($layout) _t('是否开启文章目录'), _t('解析文章目录展示在文章页面左侧,代替侧边栏的位置')); $layout->addItem($showTOC); + + $thumbnail = new Typecho_Widget_Helper_Form_Element_Text('thumbnail', NULL, + NULL, + _t('文章缩略图'), + _t('写入图片 url,展示一张图片在文章列表旁边,留空则不显示')); + $layout->addItem($thumbnail); }
\ No newline at end of file |
