docs:optimized usage instructions

This commit is contained in:
See-Night
2024-04-06 18:03:09 +08:00
committed by saica.go
parent a1775030ae
commit e5acc80042
2 changed files with 6 additions and 4 deletions

View File

@@ -23,8 +23,9 @@ A static blog template built with [Astro](https://astro.build).
2. To edit your blog locally, clone your repository, run `pnpm install` AND `pnpm add sharp` to install dependencies.
- Install [pnpm](https://pnpm.io) `npm install -g pnpm` if you haven't.
3. Edit the config file `src/config.ts` to customize your blog.
4. Run `pnpm new-post <filename>` to create a new post and edit it in `src/content/posts/`.
5. Deploy your blog to Vercel, Netlify, GitHub Pages, etc. following [the guides](https://docs.astro.build/en/guides/deploy/).
4. Change the `site` field in `astro.config.mjs` to your blog's domain.
5. Run `pnpm new-post <filename>` to create a new post and edit it in `src/content/posts/`.
6. Deploy your blog to Vercel, Netlify, GitHub Pages, etc. following [the guides](https://docs.astro.build/en/guides/deploy/).
## ⚙️ Frontmatter of Posts