Skip to content

contentascode/metalsmith-metacopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-metacopy

A metalsmith plugin to manipulate metadata and file metadata.

Installation

$ npm install metalsmith-metacopy

CLI Usage

Install via npm and then add the metalsmith-metacopy key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-metacopy": {
      "file": [ 
        { "src": "contents", "dest": "content" }
      ],
      "metadata": [
        { "src": "collections", "dest": "site" }
      ]
    }
  }
}

This will make the content key for files available also at the content key and copy the collections key (for instance created by the metalsmith-collection) into the site key in the global metadata object (both useful in the context of porting a jekyll site with liquid templates)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published