Home
Support Forums

We couldn’t deploy your site

PM: Error: Error building site: “/opt/build/repo/content/en/blog/say-hello-to-doks/index.md:2:1”: failed to unmarshal YAML: yaml: line 1: did not find expected key

I need advice to debug deploy Netlify App Error: Error building site: “/opt/build/repo/content/en/blog/say-hello-to-doks/index.md:2:1”: failed to unmarshal YAML: yaml: line 1: did not find expected key

You need to check the frontmatter in that markdown file. The YAML syntax is incorrect is what the error says.

Looks like everything is ok. And I even did not changed the file. I just downloaded it from a GitHub template.

The title starts with " but ends with '. This is not the correct syntax.

Also, in description, This is true falls out of "..." This would cause problems later, I suppose.

1 Like

Yes! I added “This is true” by myself to test it. After I deleted it, everything had worked. Thanks!