Skip to content

Commit

Permalink
feat: Add "." option to folderToPublish to allow publishing whole con…
Browse files Browse the repository at this point in the history
…tentRoot
  • Loading branch information
andymac4182 committed Apr 28, 2023
1 parent 34a5354 commit 54c53ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/lib/src/adaptors/filesystem.ts
Expand Up @@ -120,9 +120,10 @@ export class FileSystemAdaptor implements LoaderAdaptor {
const frontMatter = file.frontmatter;

if (
(file.absoluteFilePath.startsWith(
((file.absoluteFilePath.startsWith(
this.settings.folderToPublish
) &&
) ||
this.settings.folderToPublish === ".") &&
(!frontMatter ||
frontMatter["connie-publish"] !== false)) ||
(frontMatter && frontMatter["connie-publish"] === true)
Expand Down

0 comments on commit 54c53ac

Please sign in to comment.