Skip to content

Commit 6d75007

Browse files
committed
feat: interactive cli to generate post
1 parent c31a4f0 commit 6d75007

File tree

5 files changed

+343
-48
lines changed

5 files changed

+343
-48
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,9 @@ images: ['/static/images/canada/mountains.jpg', '/static/images/canada/toronto.j
132132

133133
### Compose
134134

135-
`scripts/compose.js` can be used to easily generate a post with pre-filled front matter.
135+
Run `node ./scripts/compose.js` to bootstrap a new post.
136136

137-
The first argument is the name of the post and the second optional argument is the extension (default to .mdx)
138-
139-
Example code to generate the post called "My First Post" in markdown format
140-
141-
```
142-
node ./scripts/compose.js "My First Post" .md
143-
```
144-
145-
This will generate `./data/blog/my-first-post.md` with pre-filled front matter.
137+
Follow the interactive prompt to generate a post with pre-filled front matter.
146138

147139
## Deploy
148140

data/blog/introducing-tailwind-nextjs-starter-blog.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,9 @@ images: ['/static/images/canada/mountains.jpg', '/static/images/canada/toronto.j
137137

138138
### Compose
139139

140-
`scripts/compose.js` can be used to easily generate a post with pre-filled front matter.
140+
Run `node ./scripts/compose.js` to bootstrap a new post.
141141

142-
The first argument is the name of the post and the second optional argument is the extension (default to .mdx)
143-
144-
Example code to generate the post called "My First Post" in markdown format
145-
146-
```
147-
node ./scripts/compose.js "My First Post" .md
148-
```
149-
150-
This will generate `./data/blog/my-first-post.md` with pre-filled front matter.
142+
Follow the interactive prompt to generate a post with pre-filled front matter.
151143

152144
## Deploy
153145

0 commit comments

Comments
 (0)