feat(web): table-bound intro and demo-grade web-site sample

Add compose_intro (属性/值/样式) so page heroes are not HTML strings, and polish examples/web-site for WWW Demo: literary shell, card→detail routes, richer seeds, particle atmosphere without author JS.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-16 17:34:49 +08:00
1 parent 3eb8e732ea
commit 037592087c
23 files changed
+2279 -94

No files matched your search

+27
View File
@@ -38,6 +38,18 @@ them into CSS — 样式即数据、装配即函数.
> ensure_plugin
*> web_style name=`name` table=`table` strict=`strict`*
## make_intro
+ `table`
Assemble an intro bind table (`|属性|值|样式|` / `|front|back|style|`) into an
HTML fragment for `.main-intro`. Same slot vocabulary as `compose_intro`
(`kicker`/`title`/`lede`/`claim`/`step`, plus ZH aliases). The `样式` column is
treated as a class name only here — prefer `page.compose_intro` when styles
should resolve from `shell.*` tables into `styles_css`.
> ensure_plugin
*> web_intro table=`table`*
## make_images
+ `table`
@@ -230,6 +242,21 @@ Assemble main from a bind table (`|属性|值|样式|` or `|front|back|css|`).
*> web_compose_main page=`self` main=`main`*
## compose_intro
+ `intro`
Assemble page intro from the same bind shape as `compose_main`
(`|属性|值|样式|` / `|front|back|style|`). `值` is literal copy (light
`[label](url)` / `**bold**`); `样式` resolves `shell.*` named
tables into `styles_css` like `card_title`. Consecutive `claim` / `step` rows
group into `.claim` / `.steps`. Slot aliases: `kicker`/`眉题`, `title`/`标题`,
`lede`/`导语`, `claim`/`标签`, `step`/`步骤`, plus `mount`/`插槽` and
`html`/`原文`. Replaces string `intro=` HTML. In `.mq.md` table cells, avoid
inline `` `code` `` — backtick refs are Marqdo variables; quote long prose
and use plain filenames or `[label](url)` links instead.
*> web_compose_intro page=`self` intro=`intro`*
## query
+ `query`
+23
View File
@@ -35,6 +35,16 @@ import table:lib/table.mq.md
> 确保插件
*> web_style name=`名` table=`表` strict=`严格`*
## 引言装配
+ `表`
把引言绑定表(`|属性|值|样式|` / `|front|back|style|`)装配成 `.main-intro` HTML 片段。
槽位与 `页面.引言装配` 相同。此处 `样式` 只当 class 名;要从 `shell.*` 解析进
`styles_css` 请用 `页面.引言装配`。
> 确保插件
*> web_intro table=`表`*
## 图片装配
+ `表`
@@ -217,6 +227,19 @@ import table:lib/table.mq.md
*> web_compose_main page=`self` main=`主体`*
## 引言装配
+ `引言`
与 `主体装配` 同一绑定表形(`|属性|值|样式|`)。`值` 为文案(支持轻量
`[文](url)` / `**粗**`);`样式` 解析 `shell.*` 具名表写入
`styles_css`(同 `card_title`)。连续 `claim`/`标签`、`step`/`步骤` 会分组。
槽位别名:`kicker`/`眉题`、`title`/`标题`、`lede`/`导语`、`claim`/`标签`、
`step`/`步骤`,以及 `mount`/`插槽`、`html`/`原文`。用于替代字符串 `引言=` HTML。
在 `.mq.md` 表单元格里请勿写行内 `` `code` ``(反引号是 Marqdo 变量语法);
长文加引号,文件名用纯文本或 `[文](url)`。
*> web_compose_intro page=`self` intro=`引言`*
## 查询条件
+ `条件`