metalsmith-excludes
Excludes documents from the builds based on tags, like draft or sandbox.
Installation
npm install metalsmith-excludes
Usage
Define the tags in your front matter:
---
title: A post
description: A very simple post.
tags: [ draft, example, post ]
---
<h1> {{ title }} </h1>
var excludes = ; __dirname ;
You might want to combine this plugin with metalsmith-if
:
var excludes = ;var msIf = ; __dirname ;
tags
Array
An array containing the tags you want to exclude from the build.
License
MIT License, see LICENSE for details.