A CLI for publishing standard.site documents to ATProto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add title in log

+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) {