Rename config option
This commit is contained in:
parent
cee4b6a56f
commit
da5575bade
|
@ -11,7 +11,7 @@
|
|||
"contentPath": "./content",
|
||||
"renderPath": "./renders",
|
||||
"dataPath": "./src/utils/data.json",
|
||||
"files": [
|
||||
"non-content-files": [
|
||||
"about.md", "resume.md"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue