metalsmith-source-link

1.0.1 • Public • Published

metalsmith-source-link

Plugin to add a link to your content src on github (or elsewhere) from the template.

Installation

$ npm install metalsmith-source-link --save

Usage

var Metalsmith = require('metalsmith');
var sourcelink = require('metalsmith-source-link');

Metalsmith
.use(sourcelink('https://github.com/earnubs/field-notes/tree/master/'))

Each file then has a sourceURL property which can be used in templates like so:

<a href="{{ sourceURL }}">See the source for this file on Github.</a>

Licence

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
1.0.00

Package Sidebar

Install

npm i metalsmith-source-link

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • earnubs