Skip to content

A metalsmith plugin to index content before build with contentascode next.js pipeline

License

Notifications You must be signed in to change notification settings

contentascode/metalsmith-contentascode-next-index

Repository files navigation

metalsmith-transclude-transform

Version Build Status

A metalsmith plugin to transform content before transclusion with metalsmith-transclude.

Installation

$ npm install metalsmith-transclude

CLI Usage

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

{
  "plugins": {
    "metalsmith-transclude-transform": {
      "permalinks": true,
      "folders": true
    }
  }
}

The permalinks option will transform transclusion links of the form:

:[](include/file)

if the destination file exists into:

:[](include/file.md)

The folders option will transform transclusion links of the form:

:[](include)

if the destination folder exists and is non empty (in this example the include folder contains files file1.md and file2.md to:

:[](include/file1.md)
:[](include/file2.md)

License

MIT

About

A metalsmith plugin to index content before build with contentascode next.js pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published