1.0.4 • Published 6 years ago

metalsmith-order-in-filename v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago