Spaces:
Configuration error
Configuration error
Download docs/scripts/ignoreFilesBasedOnTier.js from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/docs/scripts/ignoreFilesBasedOnTier.js
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/docs/scripts/ignoreFilesBasedOnTier.js
-
curl -L -o ignoreFilesBasedOnTier.js https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/docs/scripts/ignoreFilesBasedOnTier.js
516 Bytes
| hexo.extend.generator.register('page', function(locals){ | |
| const { config } = this; | |
| /* If you’re on the OSS site, remove every pages with `enterprise` tier. Opposite for the ENT site */ | |
| const tierToRemove = config.theme_config.tier === "opensource" ? "enterprise" : "opensource"; | |
| const pagesToBuild = locals.pages.filter(page => page.tier !== tierToRemove); | |
| return pagesToBuild.map(function(page){ | |
| return { | |
| path: page.path, | |
| data: page, | |
| layout: page.layout || 'page' | |
| }; | |
| }); | |
| }); |