Any way to ignore files/filepaths? (e.g. don't publish drafts)

I might just be missing this in the docs, but is it possible to ignore files/directories? Like a .gitignore file, but for hyperctl? e.g.: Ignore Files — Eleventy

I could see cases where I might like hyperctl to build/show files like a drafts directory when in development but skip reading them when publishing.

Or does hyperctl already avoid publishing pages that have, or are missing, specific frontmatter?

Great question! There are two flags for omitting pages from builds, and omitting pages from feeds, see:

NOTE: on preparing to reply here I went to try page.draft and discovered that it was never fully implemented; the flag and the documentation were there but the build logic was not (!). This has been fixed in version 0.17.2.

EDIT: there is currently no method for including drafts during development (i.e. via hyperctl server), but there should be. I’ll add that to the backlog and I should be able to get to that before the end of the month.

1 Like