Skip to content

selfVSmind/metalsmith-etsy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

metalsmith-etsy

A small plugin for Metalsmith to incorporate your Etsy store into your static website.

Consider the Boilerplate Option

I've set up a boilerplate project to get you jumpstarted.

Installation

$ npm install --save metalsmith-etsy

Example Build File

var Metalsmith = require('metalsmith'),
    markdown = require('metalsmith-markdown'),
    templates = require('metalsmith-templates'),
    collections = require('metalsmith-collections'),
    permalinks = require('metalsmith-permalinks'),
    etsy = require('metalsmith-etsy');

Metalsmith(__dirname)
    .use(etsy({
        api_key: <your_etsy_api_key>,
        etsy_shop: 'StickToThePlannerCOM',
        listing_template: 'listing.hbt'
    }))
    .use(collections({
        pages: {
            pattern: 'content/pages/*.md'
        },
        articles: {
            pattern: 'content/articles/*.md',
            sortBy: 'date'
        },
        listings: {
            pattern: 'listings/*.md'
        }
    }))
    .use(markdown())
    .use(permalinks({
        pattern: ':collections/:title'
    }))
    .use(templates({
        engine: 'handlebars',
        partials: {
            header: 'partials/header',
            footer: 'partials/footer'
        }
    }))
    .destination('./build')
    .build(function (err) { if(err) console.log(err) })

Better Documentation Coming

For now read about this on my blog

About

A small plugin for Metalsmith to incorporate your Etsy store into your static website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published