Correct error message for missing layout property
This commit is contained in:
1 parent
0149924551
commit
6c813020c2
1 file changed
+1
-1
@@ -73,7 +73,7 @@ function augmentExamples(files, metalsmith, done) {
|
||||
var match = filename.match(markupRegEx);
|
||||
if (match && filename !== 'index.html') {
|
||||
if (!file.layout) {
|
||||
throw new Error(filename + ': Missing template in YAML front-matter');
|
||||
throw new Error(filename + ': Missing "layout" in YAML front-matter');
|
||||
}
|
||||
var id = match[1];
|
||||
|
||||
|
||||
Reference in new issue
Block a user