this repo has no description

fix: add title in log

authored by

Julien Calixte and committed by
Julien Calixte
2d534186 b5fe8164

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