Skip to content

Commit

Permalink
feat(jekyll-md): 分类选择列表
Browse files Browse the repository at this point in the history
  • Loading branch information
StreakingMan committed Sep 6, 2022
1 parent a3f92f8 commit d2c3870
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions actions/jekyll-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '',
},
{
Expand Down

0 comments on commit d2c3870

Please sign in to comment.