metalsmith-imagecover
A Metalsmith plugin to assign each page with an image cover.
Installation
$ npm install metalsmith-imagecover
CLI Usage
Install via npm and then add the metalsmith-imagecover
key to your metalsmith.json
plugin, like so:
Javascript Usage
var excerpts = ; metalsmith;
Options
How to use in your template
Place in your template something like:
{% if post.cover %}
<img src="{{post.cover.src}}" alt="{{post.cover.alt}}" title="{{post.cover.src}}"/>
{% endif %}
License
MIT