stelcodes / nuzzle

A functional static site generator so smol you won't even notice it's there 🐈
Eclipse Public License 2.0
17 stars 1 forks source link

Add :nuzzle/ignore-pages config option (#130) #131

Closed stelcodes closed 2 years ago

stelcodes commented 2 years ago

This change adds the :nuzzle/ignore-pages option which is a set of page keys that must not be in the config after the transformation process. This allows the user to ignore pages that Nuzzle automatically generates.

Previously this was done by returning nil from the user's render-page function. Now this method is abandoned. Returning nil will result in errors when trying to export and blank pages when using the development server.

Fixes #130

stelcodes commented 2 years ago

Improves #115 by avoiding having to call render-content when building page index because render-content no longer controls if a page should be rendered or not.