Few ways we can go about this.
Via a node module pipe like solution and a docpad configuration file:
# Prepare
tumblrImporter = new (require('docpad-importer-tumblr'))({
blog: 'balupton.tumblr.com'
apiKey: 'asd'
docpad: docpad
})
# DocPad Config
module.exports =
events:
parseAfter: tumblrImporter.load
Via or via a docpad plugin and a docpad configuration file:
# DocPad Config
module.exports =
plugins:
tumblr:
blog: 'balupton.tumblr.com'
apiKey: 'asd'
Few ways we can go about this.
Via a node module pipe like solution and a docpad configuration file:
Via or via a docpad plugin and a docpad configuration file: