From 26917e0612fd97645f5806b9bc39bab767a221e3 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sat, 1 Mar 2025 08:19:02 -0500 Subject: [PATCH] Output folder tweaks --- src/shared.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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