> ## Documentation Index
> Fetch the complete documentation index at: https://docs.2024921.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 本地静态部署

> 无需后端，双击即可运行

# 本地静态部署

## 双击打开

直接双击 `public/index.html`，浏览器自动加载博客。

> `file://` 协议下语言包 JSON 可能无法加载，但后台管理功能正常。

## 本地服务器

```bash theme={null}
python -m http.server 8080 -d public
# 或
npx serve public
# 或
php -S localhost:8080 -t public
```

## 数据流

```
文章数据
  ├── 云端模式：GET /api/posts → D1
  └── 静态模式：posts.js → localStorage
```

## 导出发布

在后台 `/admin` 中导出 posts.js / feed.xml / sitemap.xml，上传到静态托管即可。
