blinkk / amagaki

A high-performance TypeScript static website generator for building highly-interactive websites. Localization inbuilt. Flexible URLs. Content managed and templates separated.
https://amagaki.dev
MIT License
36 stars 2 forks source link

fix: allow for setting the document path to null to disable #202

Closed Zoramite closed 2 years ago

Zoramite commented 2 years ago

Currently if the document path is null it defaults to the collection path. But if you try to use a null value for the path $path: ~ then it ignores that and uses the collection.

Zoramite commented 2 years ago

This should fix the issue with disabling a page based on environment:

$path: !IfEnvironment
  prod: ~