Skip to content

FushenYang/blog.oldyang.site

Repository files navigation

基于astro构建的博客

启动本项目的命令

pnpm create astro@latest -- --template basics

项目结构

/
├── public/
│   └── favicon.svg
├── src/
│   ├── components/
│   │   └── Card.astro
│   ├── layouts/
│   │   └── Layout.astro
│   └── pages/
│       └── index.astro
└── package.json

常用命令

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm run dev Starts local dev server at localhost:4321
pnpm run build Build your production site to ./dist/
pnpm run preview Preview your build locally, before deploying
pnpm run astro ... Run CLI commands like astro add, astro check
pnpm run astro -- --help Get help using the Astro CLI

备忘笔记

  1. 添加tailwindcss支持pnpm astro add tailwind
  2. 添加图片处理支持pnpm add sharp

About

我的博客

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published