import { threads } from '../store.js'; import { esc } from '../util.js'; export function renderThreads() { const rows = threads().map((t, i) => ` ${String(i + 1).padStart(2, '0')}

${esc(t.title)}

${esc(t.subtitle)}

${esc(t.question)}

${esc(t.summary)}

${t.count} 节点 ${esc(t.span)}
`).join(''); const html = `

沿革 · 五条专线

制度沿革

横看一朝之架构,纵看千年之因革。

同一件事——谁辅佐皇帝、谁监督百官、地方设几级、士人如何做官、兵从哪里来——在不同朝代有不同的答案。五条专线把二十四朝的制度碎片串成连续的线索,看它如何一步一步变成后来的样子。

${rows}
`; return { html, title: '制度沿革' }; }