fix: rewrote the missing frontmatter message
This commit is contained in:
committed by
mrugesh mohapatra
parent
3acba8cb61
commit
3f80effdbd
@ -6,7 +6,7 @@ const frontmatterCheck = (fullPath, isTranslation, fileContent) => {
|
|||||||
let errors = [];
|
let errors = [];
|
||||||
if (!frontmatter || _.isEmpty(frontmatter) || !frontmatter.title) {
|
if (!frontmatter || _.isEmpty(frontmatter) || !frontmatter.title) {
|
||||||
errors.push({
|
errors.push({
|
||||||
msg: `Missing \`title key\` frontmatter.`,
|
msg: `Misplaced frontmatter or missing \`title key\` frontmatter.`,
|
||||||
fullPath
|
fullPath
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user