Skip to content
This repository has been archived by the owner on Jul 22, 2018. It is now read-only.

xavierdutreilh/wintersmith-contents

Repository files navigation

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.

About

A Wintersmith plugin to manipulate contents

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published