blogware
Version:
A static site generator for hosting full-featured Ghost blog on GitHub Pages.
24 lines (18 loc) • 382 B
JavaScript
var table = require('../table');
function pass(file) {
if (!file) return null;
if (process.env.NODE_ENV === 'development') {
if (file.meta('type') === 'asset') {
mark(file);
}
} else {
if (table.route.r2l(file.relative)) {
mark(file);
}
}
return file;
}
function mark(file) {
file.meta('mark').push('generate');
}
module.exports = pass;