stakx-io / stakx

An opinionated, powerful, and simple static website generator built in PHP
https://stakx.io/
MIT License
14 stars 3 forks source link

Build fails if empty collections folder is referenced by pageview manager #117

Closed PeterMedina closed 4 years ago

PeterMedina commented 4 years ago

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:

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

  1. Define two collections: red and blue
  2. Create a pageview for red and blue
  3. Create a collection directory for red only and add red.md to it
  4. 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