metalsmith-order-in-filename

1.0.4 • Public • Published

metalsmith-order-in-filename NPM version Build Status

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())

Readme

Keywords

none

Package Sidebar

Install

npm i metalsmith-order-in-filename

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

3.51 kB

Total Files

5

Last publish

Collaborators

  • miroslavpeterka