Skip to content

Use `drafts` plugin to exclude unpublished pages

Martina Ferrari requested to merge metalsmith_drafts into main

This greatly simplifies the PUG templates, as the pages simply disappear from the build and do not need to be filtered out in code.

It also fixes a bug where some pages were "unpublished" by mistake. Now pages are published by default, and need an explicit draft: true metadata entry to un-publish them.

Merge request reports