diff --git a/src/shared.js b/src/shared.js index 38316af..cf3f4fc 100644 --- a/src/shared.js +++ b/src/shared.js @@ -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