Correct error message for missing layout property

This commit is contained in:
Tim Schaub
2015-11-01 08:15:05 -07:00
parent 0149924551
commit 6c813020c2

View File

@@ -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];