UNPKG

blogware

Version:

A static site generator for hosting full-featured Ghost blog on GitHub Pages.

28 lines (19 loc) 443 B
var table = require('../table'); function pass(file) { if (!file) return null; if (file.meta('type') !== 'document') { return file; } var collection = file.meta('collection'); if (collection !== 'posts') { return file; } if (file.meta('event') !== 'unlink') { var time = file.meta('matter').date; if (time) { table.config.add('site', 'time', time); } } return file; } module.exports = pass;