metalsmith-order-in-filename
v1.0.4
Published
A metalsmith plugin for add order meta tag from filename
Downloads
3
Readme
metalsmith-order-in-filename
A Metalsmith plugin to extract the order and title from filenames
Features
- pulls
order
from filename - creates
title
from 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-filename
Usage
Get order and title of article in filenames
1 article title.md
2 another article title.md
Configure your build
import metalsmithOrderInFilename from 'metalsmith-order-in-filename'
metalsmith.use(metalsmithOrderInFilename())