Build fails if empty collections folder is referenced by pageview manager
Closed this issue · 0 comments
PeterMedina commented
System Information
PHP Version:
7.4.1
stakx Version:
v0.2.0-beta1-19-g719042b
Operating System
macOS 10.15.2
Expected behavior
I expected to:
- Define collections in
_config.yml
- Create blank collections folders in anticipation of future content
- Create templates for pageview manager that reference collections
- Build site
Actual behavior
Stakx will give a the following error when attempting to build:
Your website failed to build with the following error: The 'collection-name' collection is not defined
Steps to reproduce behavior
- Define two collections:
red
andblue
- Create a pageview for
red
andblue
- Create a collection directory for
red
only and addred.md
to it - Attempt to build site
You should receive the following error:
Your website failed to build with the following error: The 'blue' collection is not defined