Output folder tweaks

This commit is contained in:
Will Boyd
2025-03-01 08:19:02 -05:00
parent 0232a59572
commit 26917e0612
+11 -1
View File
@@ -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