1.0.4 • Published 7 years ago
metalsmith-order-in-filename v1.0.4
metalsmith-order-in-filename

A Metalsmith plugin to extract the order and title from filenames
Features
- pulls
orderfrom filename - creates
titlefrom filename, this is the rest from filename, and Capitalized Each Word - adds these properties to the file metadata
Installation
$ npm install --save-dev metalsmith-order-in-filenameUsage
Get order and title of article in filenames
1 article title.md
2 another article title.mdConfigure your build
import metalsmithOrderInFilename from 'metalsmith-order-in-filename'
metalsmith.use(metalsmithOrderInFilename())