title 显示为 CS段落-<page>(如 169_3_64 -> CS段落-64),不再使用段落正文作为标题。
@@ -622,5 +622,6 @@ export async function csParaLoader({ params }: LoaderFunctionArgs) {
throw new Response("cs-para not found", { status: 404 });
}
- return { title: res.data.curr.content };
+ // title 使用 `book_para_page` 中的 page(第三段),例如 `169_3_64` -> `64`
+ return { title: id.split("_")[2] ?? id };
@@ -11,7 +11,7 @@ const items = {
"pages.task.project.title": "项目",
"pages.tipitaka.chapter.title": "章节",
"pages.tipitaka.para.title": "段落",
- "pages.tipitaka.cs-para.title": "对照页",
+ "pages.tipitaka.cs-para.title": "CS段落",
};
export default items;