在博客配置文件_config.yml中deploy中添加第二个type的时候出现了以下报错:

提示YAMLException: duplicated mapping key,这是因为填写的格式不对,应该在每一个type前面加上-,正确格式如下:
1 2 3 4 5 6
| deploy: - type: 'git' repo: git@github.com:xxxxxx/xxxxxx.github.io.git branch: main - type: 'baidu_url_submitter'
|
重新hexo clean && hexo g && hexo d,报错消失