Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【bug】文章开头格式导致部署失败 #21

Open
100759 opened this issue Oct 22, 2024 · 1 comment
Open

【bug】文章开头格式导致部署失败 #21

100759 opened this issue Oct 22, 2024 · 1 comment

Comments

@100759
Copy link

100759 commented Oct 22, 2024

文章开头的格式不对就会导致部署失败,比如其他博客大都是date:'YYYY-MM-DD', (加上引号这个就部署失败了)不管是迁移博客还是使用elog同步,都有点不方便。
{EC47FA80-F472-4CB1-B973-4E3BB47D300B}
(这样可以部署成功)
{835C1099-D17A-4F81-BA31-01141F12DEA3}
(加上引号就部署失败)
{55F2D4A7-8195-49D5-B009-632BAED3A96A}
失败代码
{407412C6-0576-4C39-BAE5-F00AFE3E235C}
将categories、tags的[ ],去掉后也是同样报错。
{D3797525-AA6B-486A-9873-65D2D55B55D9}
报错代码

imsyy added a commit that referenced this issue Oct 23, 2024
@imsyy
Copy link
Owner

imsyy commented Oct 23, 2024

  1. datecategoriestags 参数已做出错误格式兼容

  2. 按照标准的话,categories 如果需要去除数组,应该写为下面的方式:

    ---
    categories:
      - 随便说说
    ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants