Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

v1.1.0 - Drafts

Compare
Choose a tag to compare
@shanerobinson shanerobinson released this 20 Sep 00:43
· 119 commits to main since this release
7be0cc7

Draft Posts

Added the ability to have DRAFT Posts that always process and display in DEV env but will not process in PRODUCTION.

Usage

Add draft: true to frontmatter of any /src/posts/*.md file. The file will be visible during local DEV but will not be processed by 11ty in PRODUCTION environments.

NOTE: draft: frontmatter key is NOT required at all. If omitted the Post will display in BOTH DEV and PRODUCTION.

Also, if your repo is Public, Posts marked draft: true will still be available to anyone viewing your repo.