共享博客内容仓库,作为 Pages 和 wangwindow.github.io 的 Git 子模块。
Blogs/
├── posts/
│ ├── 2024/ # 2024年文章
│ ├── 2025/ # 2025年文章
│ │ └── article-slug/
│ │ ├── index.md
│ │ └── cover.jpg
│ └── weekly/ # 周记
├── uploads/ # 公共上传资源
└── README.md
---
title: "文章标题"
slug: "url-slug" # 可选,默认使用目录名
date: 2025-12-28T17:51:27+08:00
updated: 2025-12-29T10:00:00+08:00 # 可选
author: "wangwindow" # 可选
draft: false # 可选,默认 false
tags:
- "tag1"
- "tag2"
description: "文章描述"
cover: "./cover.jpg" # 可选,相对路径
---# Pages 项目
git submodule add https://github.com/WangWindow/Blogs.git src/content/blog
# wangwindow.github.io 项目
git submodule add https://github.com/WangWindow/Blogs.git src/data/bloggit submodule update --remote --merge当此仓库有新提交时,会通过 GitHub Actions 触发 Pages 和 wangwindow.github.io 的自动构建。