Skip to content
Permalink
Browse files

Update script

  • Loading branch information
davidmerfield committed Dec 14, 2019
1 parent d43ef4a commit d196289a10407239ec6488b8acb14094662426db
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/blog/write-data-metadata.js
@@ -14,6 +14,7 @@ get(process.argv[2], function(err, user, blog) {
blog.id,
function(entry, next) {
var contents, hasMetadata, dateMetadata;
if (entry.deleted || entry.page) return next();
if (entry.metadata.date) return next();
if (SUPPORTED_EXTENSIONS.indexOf(path.extname(entry.path).toLowerCase()) === -1) {
console.log(entry.path, 'Cannot add metadata to unsupported file type')

0 comments on commit d196289

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