Skip to content

wcastand/metalsmith-medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metalsmith-medium

Metalsmith package to get latest post from medium api for a user.

Install

npm install metalsmith-medium

Usage

...
import medium from 'metalsmith-medium'
// OR
const medium = require('metalsmith-medium').default

Metalsmith(__dirname)
.use(medium('mpjme')) //username
.use(layouts({ engine: 'jade' }))
.use(jade({useMetadata: true}))
.build((err) => err ? console.error(err) : console.log("Build."))

The user basic info and latest posts will be added to the metadata :).

Contributing

Feel free to make issues or PRs or do some test (i would love that ;) ).

About

get latest post from a medium's user

Resources

Stars

Watchers

Forks

Packages

No packages published