diff --git a/.gitignore b/.gitignore index 55b6cd2f..892b868a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ yarn-error.log .nova site-static-html/ + +!site-dynamic-php/public/.gitignore diff --git a/content/public/.gitignore b/content/public/.gitignore new file mode 100644 index 00000000..5ca0973f --- /dev/null +++ b/content/public/.gitignore @@ -0,0 +1,2 @@ +.DS_Store + diff --git a/src/FileSystem.php b/src/FileSystem.php index 0dce6c32..e82af58d 100644 --- a/src/FileSystem.php +++ b/src/FileSystem.php @@ -41,6 +41,7 @@ public static function finder(): Finder ->ignoreUnreadableDirs() ->ignoreDotFiles(false) ->ignoreVCSIgnored(true) + ->notName('.gitignore') ->files() ->filter(fn($f) => self::isPublished($f)) ->in(self::publicRoot());