Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
PeterMedina opened this issue Jan 13, 2020 · 0 comments
Closed
Labels
Bug: Confirmed The bug has been verified to exist and will be fixed Bug Report Core: Non-breaking This is a small change to the project's internal; can be planned for minor releases Difficulty: Easy Simple fix that won't be invasive
Milestone

Comments

@PeterMedina
Copy link
Contributor

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

  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

@allejo allejo added Bug Report Bug: Confirmed The bug has been verified to exist and will be fixed Core: Non-breaking This is a small change to the project's internal; can be planned for minor releases Difficulty: Easy Simple fix that won't be invasive labels Jan 13, 2020
@allejo allejo added this to the v0.2.1 milestone Jan 13, 2020
@PeterMedina PeterMedina changed the title Build fails if emoty collections folder is referenced by pageview manager Build fails if empty collections folder is referenced by pageview manager Jan 13, 2020
@allejo allejo closed this as completed in 0430124 Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Confirmed The bug has been verified to exist and will be fixed Bug Report Core: Non-breaking This is a small change to the project's internal; can be planned for minor releases Difficulty: Easy Simple fix that won't be invasive
Projects
None yet
Development

No branches or pull requests

2 participants