tangled
alpha
login
or
join now
apoena.dev
/
sequoia
forked from
stevedylan.dev/sequoia
0
fork
atom
A CLI for publishing standard.site documents to ATProto
0
fork
atom
overview
issues
pulls
pipelines
fix: add title in log
Julien Calixte
1 month ago
de35e7d5
f50b50a2
+4
-1
1 changed file
expand all
collapse all
unified
split
packages
cli
src
commands
publish.ts
+4
-1
packages/cli/src/commands/publish.ts
reviewed
···
290
290
}> = [];
291
291
292
292
for (const { post, action } of postsToPublish) {
293
293
-
s.start(`Publishing: ${post.frontmatter.title}`);
293
293
+
const trimmedContent = post.content.trim()
294
294
+
const titleMatch = trimmedContent.match(/^# (.+)$/m)
295
295
+
const title = titleMatch ? titleMatch[1] : post.frontmatter.title
296
296
+
s.start(`Publishing: ${title}`);
294
297
295
298
// Init publish date
296
299
if (!post.frontmatter.publishDate) {