wintersmith-contents

1.0.0 • Public • Published

wintersmith-contents Build Status

A Wintersmith plugin to manipulate contents

Installation

Install globally or locally using npm:

npm install [-g] wintersmith-contents

Add wintersmith-contents to your config.json:

{
  "plugins": [
    "wintersmith-contents"
  ]
}

Usage

List all entries:

env.helpers.contents.list(contents);

List all entries from a given subtree:

env.helpers.contents.list(contents.articles);

List all text files:

env.helpers.contents.filter(contents, '**/*.txt');

Please note that wintersmith-contents relies on minimatch to match filenames with specified patterns. So, any pattern supported by minimatch is also supported by wintersmith-contents.

License

wintersmith-contents is released under the MIT license.

Dependents (5)

Package Sidebar

Install

npm i wintersmith-contents

Weekly Downloads

14

Version

1.0.0

License

MIT

Last publish

Collaborators

  • xavierdutreilh