mirror of
https://github.com/seigler/dashdev-website
synced 2025-07-27 06:46:09 +00:00
initial commit
This commit is contained in:
commit
9169024ff0
60 changed files with 8596 additions and 0 deletions
25
lib/metalsmith-debug.js
Normal file
25
lib/metalsmith-debug.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
metalsmith-debug
|
||||
displays site metadata and page information in the console
|
||||
*/
|
||||
module.exports = function() {
|
||||
|
||||
'use strict';
|
||||
|
||||
return function(files, metalsmith, done) {
|
||||
|
||||
console.log('\nMETADATA:');
|
||||
console.log(metalsmith.metadata());
|
||||
|
||||
for (var f in files) {
|
||||
|
||||
console.log('\nPAGE:');
|
||||
console.log(files[f]);
|
||||
|
||||
}
|
||||
|
||||
done();
|
||||
|
||||
};
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue