Initial commit: 11ty website with Fire/Frost branding
This commit is contained in:
10
node_modules/@11ty/eleventy/src/Util/DirContains.js
generated
vendored
Normal file
10
node_modules/@11ty/eleventy/src/Util/DirContains.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import path from "node:path";
|
||||
|
||||
// Returns true if subfolder is in parent (accepts absolute or relative paths for both)
|
||||
export default function (parentFolder, subFolder) {
|
||||
// path.resolve returns an absolute path
|
||||
if (path.resolve(subFolder).startsWith(path.resolve(parentFolder))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user