在yaml文件中添加相同变量名的数组



对于这个网站,它从作者那里获取信息。Yaml文件。

这个文件保存了演示作者的详细信息。

authors:
- slug: wutali
name: Takahiro Fujiwara
introduction:
Co-founder and CTO at Fuller, Inc. / Software & Data Engineer /
Python / Golang / React

但是,我想把我的信息写进去。

- slug: Hemming
name: Alexander Hemming
introduction:
Developer, React, Node, Sveltekit, Goland.
- slug: Owner
name: John Doe
introduction:
Founder and CEO at a company. 

将此添加到末尾似乎不起作用。我该如何使这些信息能够被其他潜在的作者访问呢?

有两个缩进错误:

- slug: Hemming
name: Alexander Hemming
introduction:
Developer, React, Node, Sveltekit, Goland.
- slug: Owner   # fixed indentation to be on par with previous item
name: John Doe
introduction: # next line must be more indented to be the value
# of this key.
Founder and CEO at a company.

最新更新