Rename config option

This commit is contained in:
LordMathis 2019-09-22 20:13:08 +02:00
parent cee4b6a56f
commit da5575bade
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
"contentPath": "./content", "contentPath": "./content",
"renderPath": "./renders", "renderPath": "./renders",
"dataPath": "./src/utils/data.json", "dataPath": "./src/utils/data.json",
"files": [ "non-content-files": [
"about.md", "resume.md" "about.md", "resume.md"
] ]
} }

View File

@ -42,7 +42,7 @@ export class Scanner {
const filePath = path.join(process.cwd(), config.contentPath, file) const filePath = path.join(process.cwd(), config.contentPath, file)
const metadata = this.fileMetadata(filePath) const metadata = this.fileMetadata(filePath)
if (config.files.indexOf(file) === -1) { if (config['non-content-files'].indexOf(file) === -1) {
const frontMatter = fm(data) const frontMatter = fm(data)
if (frontMatter.attributes.draft) { if (frontMatter.attributes.draft) {