msl

metalsmith-source-link

Add a link to your src on github (or elsewhere) from templates

Showing:

Popularity

Downloads/wk

3

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

metalsmith-source-link Build Status

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100