Skip to content
Permalink
Browse files

Adds script to write date metadata

  • Loading branch information
davidmerfield committed Nov 23, 2019
1 parent 1a3de31 commit 4ceeef7ef09a8ad1f11a78ea92458bb092af1cb0
Showing with 23 additions and 0 deletions.
  1. +23 −0 scripts/blog/write-data-metadata.js
@@ -0,0 +1,23 @@
var Entry = require("entry");
var Entries = require("entries");
var Blog = require("blog");
var get = require("../get/blog");
var each = require("../each/entry");

get(process.argv[2], function(err, user, blog) {
if (err) throw err;
Entries.each(
blog.id,
function(entry, next) {
if (entry.metadata.date) {
return next();
}

if ()
},
function() {
console.log("Done!");
process.exit();
}
);
});

0 comments on commit 4ceeef7

Please sign in to comment.
You can’t perform that action at this time.