Skip to content

Instantly share code, notes, and snippets.

@woodyrew
woodyrew / simple_plugin_example.js
Last active August 29, 2015 14:24
Metalsmith Plugins
var Metalsmith = require('metalsmith');
var plugin_name = function (options) {
return function (files, metalsmith, done) {
console.log(files);
console.log(metalsmith);
done();
};
};
@woodyrew
woodyrew / blog.js
Created December 4, 2017 10:47
Circular references
const posts = {
'first': {
title: 'first'
},
'second': {
title: 'second'
},
'third': {
title: 'third'
}
@woodyrew
woodyrew / .block
Last active October 23, 2019 20:35
Tides visualisation (d3 v5)
license: mit
@woodyrew
woodyrew / .block
Last active June 7, 2020 20:43
Simple d3 v5 tooltips
license: mit