From d2c3870e97af0555ad21bb13fca838cb540ef486 Mon Sep 17 00:00:00 2001 From: streakingman Date: Wed, 7 Sep 2022 00:50:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(jekyll-md):=20=E5=88=86=E7=B1=BB=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/jekyll-md.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/actions/jekyll-md.ts b/actions/jekyll-md.ts index 1aaf188..6e39ad9 100644 --- a/actions/jekyll-md.ts +++ b/actions/jekyll-md.ts @@ -14,9 +14,24 @@ export const jekyllMD: JekyllMd = async (title, category, tags) => { default: title || '', }, { - type: 'input', + type: 'list', name: 'inputCategory', - message: '请输入分类', + message: '请选择分类', + choices: [ + 'JavaScript', + 'CSS', + '大前端', + '计算机网络', + '数据结构与算法', + '设计模式', + '运维部署', + '技术相关', + '独立游戏', + '工作总结', + '随笔杂谈', + '音乐', + '绘画', + ], default: category || '', }, {