Skip to content
Permalink
Browse files

Tweaked Wordpress importer

  • Loading branch information...
davidmerfield committed Mar 12, 2019
1 parent ac8e3c6 commit 6dd9cf9a2b519be8d7d8db6250287907fc7a3480
@@ -6,7 +6,7 @@ module.exports = function(title, page, draft, dateStamp, slug) {
var relative_path_without_extension;
var name;

slug = slugify(title || slug || 'untitled');
slug = slugify(title || slug || dateStamp.toString() || 'untitled');
name = name || slug;

name = name.split("/").join("-");
@@ -26,7 +26,7 @@ module.exports = function(item, output_directory, callback) {
helper.write
],
function(err, result) {
if (err) console.error(error);
if (err) console.error(err);
callback(null);
}
);

0 comments on commit 6dd9cf9

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