diff --git a/config.json b/config.json index 70f9560..9226830 100644 --- a/config.json +++ b/config.json @@ -11,7 +11,7 @@ "contentPath": "./content", "renderPath": "./renders", "dataPath": "./src/utils/data.json", - "files": [ + "non-content-files": [ "about.md", "resume.md" ] } diff --git a/src/utils/scanner.js b/src/utils/scanner.js index ecbe254..91a32a5 100644 --- a/src/utils/scanner.js +++ b/src/utils/scanner.js @@ -42,7 +42,7 @@ export class Scanner { const filePath = path.join(process.cwd(), config.contentPath, file) const metadata = this.fileMetadata(filePath) - if (config.files.indexOf(file) === -1) { + if (config['non-content-files'].indexOf(file) === -1) { const frontMatter = fm(data) if (frontMatter.attributes.draft) {