mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
Output folder tweaks
This commit is contained in:
+11
-1
@@ -19,7 +19,17 @@ export function buildPostPath(post, overrideConfig) {
|
||||
|
||||
// add folder for post type if exists
|
||||
if (post.type) {
|
||||
pathSegments.push(post.type);
|
||||
switch (post.type) {
|
||||
case 'post':
|
||||
pathSegments.push('posts');
|
||||
break;
|
||||
case 'page':
|
||||
pathSegments.push('pages');
|
||||
break;
|
||||
default:
|
||||
pathSegments.push('custom');
|
||||
pathSegments.push(post.type);
|
||||
}
|
||||
}
|
||||
|
||||
// add drafts folder if this is a draft post
|
||||
|
||||
Reference in New Issue
Block a user