Documentation and output for custom post types

This commit is contained in:
Will Boyd
2020-12-27 14:05:48 -05:00
parent d6ef25b764
commit 828230dedd
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ async function writeMarkdownFilesPromise(posts, config ) {
// package up posts into payloads
const payloads = posts.map((post, index) => ({
item: post,
name: post.meta.slug,
name: (config.includeOtherTypes ? post.meta.type + ' - ' : '') + post.meta.slug,
destinationPath: getPostPath(post, config),
delay: index * settings.markdown_file_write_delay
}));