A CLI for publishing standard.site documents to ATProto

fix: add title in log

+4 -1
+4 -1
packages/cli/src/commands/publish.ts
··· 290 290 }> = []; 291 291 292 292 for (const { post, action } of postsToPublish) { 293 - s.start(`Publishing: ${post.frontmatter.title}`); 293 + const trimmedContent = post.content.trim() 294 + const titleMatch = trimmedContent.match(/^# (.+)$/m) 295 + const title = titleMatch ? titleMatch[1] : post.frontmatter.title 296 + s.start(`Publishing: ${title}`); 294 297 295 298 // Init publish date 296 299 if (!post.frontmatter.publishDate) {