Correct error message for missing layout property
This commit is contained in:
@@ -73,7 +73,7 @@ function augmentExamples(files, metalsmith, done) {
|
|||||||
var match = filename.match(markupRegEx);
|
var match = filename.match(markupRegEx);
|
||||||
if (match && filename !== 'index.html') {
|
if (match && filename !== 'index.html') {
|
||||||
if (!file.layout) {
|
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];
|
var id = match[1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user