mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-20 15:14:01 +09:00
Stuff for drafts, handling missing slugs and dates
This commit is contained in:
+6
-1
@@ -156,5 +156,10 @@ function normalize(value, type, onError) {
|
||||
}
|
||||
|
||||
export function buildSamplePostPath(overrideConfig) {
|
||||
return shared.buildPostPath('', luxon.DateTime.now(), 'my-post', overrideConfig);
|
||||
const samplePost = {
|
||||
date: luxon.DateTime.now(),
|
||||
slug: 'my-post'
|
||||
};
|
||||
|
||||
return shared.buildPostPath(samplePost, overrideConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user