wintersmith-makerelative
Wintersmith makeRelative() helper
Ensures you no longer have to deal with baseUrl in wintersmith.
Intended use is from something like a jade template:
link(rel='stylesheet', href=makeRelative(page.url, '/syntax.css'))
That way the template can be used deep in hierarchies and will render the following for /foo/bar/baz/
:
Installing
Install globally or locally using npm
npm install [-g] wintersmith-plugin
and add wintersmith-makerelative
to your config.json
Running tests
npm install
npm test