Introduce web_style ABI (样式装配) so themes are GFM style tables
(|选择器|属性|值|, optional |媒体| column for @media) assembled by
functions instead of hand-written CSS strings — 文档即代码. The new
examples/marqdo-blog shows a full blog: card grid, dynamic /post/{slug},
tag archive, WebSocket live widget, and session-gated admin CRUD, plus a
smoke test (15 checks) and README.
Co-authored-by: Cursor <cursoragent@cursor.com>
46 lines
837 B
Markdown
46 lines
837 B
Markdown
## posts
|
|
|
|
文章主表结构。`slug` 用于详情页 `/post/{slug}` 的动态路由;`content` 存 Markdown 正文;`tag` 是主标签(tags 表 slug)。
|
|
|
|
`schema` =
|
|
|
|
| 字段 | 类型 | 可空 |
|
|
|------|------|------|
|
|
| id | integer | false |
|
|
| title | text | false |
|
|
| slug | text | false |
|
|
| summary | text | true |
|
|
| content | text | true |
|
|
| tag | text | true |
|
|
| created_at | text | true |
|
|
| updated_at | text | true |
|
|
|
|
**`schema`**
|
|
|
|
## tags
|
|
|
|
标签表结构。
|
|
|
|
`tags` =
|
|
|
|
| 字段 | 类型 | 可空 |
|
|
|------|------|------|
|
|
| id | integer | false |
|
|
| name | text | false |
|
|
| slug | text | false |
|
|
|
|
**`tags`**
|
|
|
|
## post_tags
|
|
|
|
文章-标签关联表结构。
|
|
|
|
`post_tags` =
|
|
|
|
| 字段 | 类型 | 可空 |
|
|
|------|------|------|
|
|
| id | integer | false |
|
|
| post_id | integer | false |
|
|
| tag_id | integer | false |
|
|
|
|
**`post_tags`** |