Skip to content

Commit

Permalink
docs(README): 更新文件引用
Browse files Browse the repository at this point in the history
  • Loading branch information
xunpod authored Jun 9, 2024
1 parent 19bc9da commit 15ce6a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

1. 新闻内容使用 `markdown` 编写
2. 新闻的md文件路径为 `public/news/`
3. 将新闻文件放到 `public/news/` 文件夹后,需执行 `public/makeCategory` 命令,来生成新闻索引文件,生成的索引文件位于 `public/newsCategories` 文件夹下
4. 新闻md文件需要头信息,跟之前的格式一致,头信息里category字段对应关系如下:
3. 静态文件路径为 `assets/`,引用方式为 `/assets/...`
5. 新闻md文件需要头信息,跟之前的格式一致,头信息里category字段对应关系如下:
1. news: 用户公告
2. warning: 安全公告
3. community: 社区新闻
4. book: 社区期刊
5. 新闻的md文件名里如需体现语言,如zh-cn,则文件名后缀的前面必须是.zh-cn.md,也就是遵循现有语言的规则,如果忽略语言,则默认为en(英文),详情可查看[生成新闻目录的代码](makeCategory/main.go)
6. 新闻的md文件名里如需体现语言,如zh-cn,则文件名后缀的前面必须是.zh-cn.md,也就是遵循现有语言的规则,如果忽略语言,则默认为en(英文),详情可查看[生成新闻目录的代码](makeCategory/main.go)

# todolist
功能实现
Expand Down

0 comments on commit 15ce6a3

Please sign in to comment.