diff --git a/packages/cli/src/commands/publish.ts b/packages/cli/src/commands/publish.ts index d8964d5..951fde4 100644 --- a/packages/cli/src/commands/publish.ts +++ b/packages/cli/src/commands/publish.ts @@ -297,19 +297,27 @@ export const publishCommand = command({ } } - let postUrl = ""; + log.message( + ` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}`, + ); if (verbose) { const postPath = resolvePostPath( post, config.pathPrefix, config.pathTemplate, ); - postUrl = `\n ${config.siteUrl}${postPath}`; - } + log.message(` Post URL: ${ config.siteUrl }${ postPath }`); + if (post.frontmatter.ogImage) { log.message( - ` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}${postUrl}`, + post.coverImagePath + ? ` Resolved cover image for ${post.frontmatter.title}: ${post.frontmatter.ogImage}` + : ` Failed to resolve cover image for ${post.frontmatter.title}: ${post.frontmatter.ogImage}`, ); - + } + log.message(` Frontmatter:\n${ Object.entries(post.frontmatter) + .map(([key, value]) => ` - ${key}: ${value}`) + .join("\n") }`); + } const postValid = await validatePost(post); isValid &&= postValid; }