
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
metalsmith-drafts
Advanced tools
A metalsmith plugin to hide drafts.
$ npm install metalsmith-drafts
Install via npm and then add the metalsmith-drafts key to your metalsmith.json plugins, like so:
{
"plugins": {
"metalsmith-drafts": true
}
}
Then in your files YAML front-matter add draft: true.
In case you want to force all files to be set to draft: true, use the following plugin-option:
{
"plugins": {
"metalsmith-drafts": {
"default": true
}
}
}
Pass the plugin to Metalsmith#use, like so:
var drafts = require('metalsmith-drafts');
metalsmith.use(drafts());
Then in your files YAML front-matter add draft: true.
draftIf you want to define a default value for draft (in case they are not definied in the YAML front-matter, then use the plugin option default:
var drafts = require('metalsmith-drafts');
metalsmith.use(drafts( {
default: true
}));
MIT
FAQs
A metalsmith plugin to hide drafts.
We found that metalsmith-drafts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.