Files
foodie/README.md
T

60 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 🍳 foodie — 家里的菜谱
记录家里做过的、爱吃的菜。每道菜一篇 Markdown 菜谱,图片/视频放 `assets/` 对应目录。
## 目录结构
```
foodie/
├── README.md # 本文件:菜谱索引
├── recipes/ # 菜谱(每道菜一个 .md 文件)
│ └── 可乐鸡翅.md
└── assets/ # 媒体资源(图片、视频)
└── <菜名>/ # 与 recipes 里的菜一一对应
├── photos/ # 成品图、步骤图(jpg/png)
└── videos/ # 做菜视频(mp4)
```
## 菜谱索引
| 菜名 | 分类 | 链接 |
|---|---|---|
| 可乐鸡翅 | 荤菜·鸡 | [recipes/可乐鸡翅.md](recipes/可乐鸡翅.md) |
| 蒸鸡蛋羹 | 蛋类·快手菜 | [recipes/蒸鸡蛋羹.md](recipes/蒸鸡蛋羹.md) |
| 大虾烧白菜 | 荤菜·海鲜 | [recipes/大虾烧白菜.md](recipes/大虾烧白菜.md) |
| 煎牛排(零失败法) | 荤菜·牛肉 | [recipes/煎牛排.md](recipes/煎牛排.md) |
## 添加新菜
1. 在 `recipes/` 新建 `<菜名>.md`,按统一格式填写(见菜谱模板)
2. 图片放 `assets/<菜名>/photos/`,视频放 `assets/<菜名>/videos/`
3. 菜谱里用相对路径引用,例如 `![成品](../assets/可乐鸡翅/photos/成品.jpg)`
4. 视频用内嵌播放器(Gitea 1.27 支持,页面直接播放):
```html
<video controls width="100%" src="../assets/可乐鸡翅/videos/做法.mp4"></video>
```
⚠️ 必须用 `<video src>` 单标签写法;`<source>` 子标签会被过滤,`style` 属性也会被剥
4. 在下方索引表加一行
## 菜谱模板
```markdown
# 菜名
- **分类:** 荤菜·鸡 / 素菜 / 汤 / 主食…
- **用时:** 约 40 分钟
- **难度:** ⭐
- **适合:** 3-4 人
## 材料
- ...
## 步骤
1. ...
## 小窍门
- ...
```
> 注:菜谱一般不含牛奶妹的辅食;婴儿辅食单独开文件用 `辅食/` 子目录。