Add as a wizard question, automatically gather post types

This commit is contained in:
Will Boyd
2020-12-26 16:27:16 -05:00
parent 2e9550f14a
commit 108dafd100
4 changed files with 27 additions and 11 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ function getPostPath(post, config) {
// start with base output dir
const pathSegments = [config.output];
// create fragment for post type, if there's more than one
if (settings.post_types.length > 1) {
// create fragment for post type if we're dealing with more than just "post"
if (config.includeOtherTypes) {
pathSegments.push(post.meta.type);
}