🎵 轻音乐
190 字
1 分钟
博客搭建指南

博客搭建指南#

本文介绍如何使用 Astro + fuwari 主题搭建个人博客。

前置条件#

  • Node.js >= 18
  • pnpm 包管理器

安装步骤#

1. 克隆项目#

Terminal window
git clone https://github.com/saicaca/fuwari.git my-blog
cd my-blog

2. 安装依赖#

Terminal window
pnpm install

3. 配置信息#

编辑 src/config.ts 文件,修改以下配置:

  • siteConfig — 站点标题、语言等
  • profileConfig — 个人头像、姓名、简介、社交链接
  • navBarConfig — 导航菜单

4. 创建文章#

src/content/posts/ 目录下创建 .md 文件,格式如下:

---
title: 文章标题
published: 2026-01-01
description: 文章描述
tags: [标签1, 标签2]
category: 分类
draft: false
---
# 正文内容...

5. 启动开发服务器#

Terminal window
pnpm dev

访问 http://localhost:4321 即可预览。

部署#

Terminal window
pnpm build

构建完成后,dist 目录即为可部署的静态文件。

博客搭建指南
https://fuwari.vercel.app/posts/blog-setup/
作者
我的博客
发布于
2026-08-12
许可协议
CC BY-NC-SA 4.0