This can be set with CLI flags, or in the config here if you prefer.

future: true
profile: true
livereload: true

Cause a build to fail if there is a YAML syntax error in a page’s frontmatter. Only works in Jekyll 4 though.

strict_front_matter: true