ComplexPug/blog
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
# Blog html blog. ## 目录结构 ``` blog/ ├── build.py # 博客生成器 ├── content/ # 文章内容目录 └── public/ # 生成的静态网站 ``` ## 使用方法 ### 1. 构建博客 ```bash python3 build.py ``` ### 2. 本地预览 ```bash python3 -m http.server 8080 -d public ``` ### 3. 添加新文章 在 `content/post/` 目录下创建 Markdown 文件,格式如下: ```markdown --- title: '文章标题' date: 2024-12-05 tags: ["标签1", "标签2"] author: "作者名" draft: false # 是否草稿 --- 这里是文章内容... ```