upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
3 changed files with 29 additions and 1 deletions
Showing only changes of commit d3f6716917 - Show all commits

View File

@ -82,6 +82,20 @@ You can start editing the page by modifying `pages/index.js`. The page auto-upda
`pages` - pages to route to. Read the [Next.js documentation](https://nextjs.org/docs) for more information
## Compose
`scripts/compose.js` can be used to easily generate a post with pre-filled front matter.
The first argument is the name of the post and the second optional argument is the extension (default to .mdx)
Example code to generate the post called "My First Post" in markdown format
```
node ./scripts/compose.js "My First Post" .md
```
This will generate `./data/blog/my-first-post.md` with pre-filled front matter.
## Deploy
**Vercel**

View File

@ -88,6 +88,20 @@ You can start editing the page by modifying `pages/index.js`. The page auto-upda
`pages` - pages to route to. Read the [Next.js documentation](https://nextjs.org/docs) for more information
## Compose
`scripts/compose.js` can be used to easily generate a post with pre-filled front matter.
The first argument is the name of the post and the second optional argument is the extension (default to .mdx)
Example code to generate the post called "My First Post" in markdown format
```
node ./scripts/compose.js "My First Post" .md
```
This will generate `./data/blog/my-first-post.md` with pre-filled front matter.
## Deploy
**Vercel**

View File

@ -24,6 +24,6 @@ summary:
---
`
fs.writeFile(`data/blog/${date}-${fileName}.${ext}`, frontMatter, (err) => {
fs.writeFile(`data/blog/${fileName}.${ext}`, frontMatter, (err) => {
if (err) throw err
})