Prepare LaySite 1.5.1 page routing and template updates

This commit is contained in:
2026-11-28 03:07:14 +08:00
parent 50fb30ff3b
commit 474cb766be
41 changed files with 354 additions and 146 deletions
+43
View File
@@ -214,4 +214,47 @@ foreach ($additionalPages as $theme => $templates) {
}
}
$newSuites = [
'atrium' => ['Atrium · 场馆', '日光、宽幅留白和陶土色,适合展览、场馆和预约。', [
'atrium-exhibition' => ['展览首页', '让作品先开口。', '用策展导读、展品和参观信息介绍正在举行的展览。', [
['curators-note', '策展导读', 'editorial-feature'], ['selected', '展品一览', 'gallery'], ['visit', '预约参观', 'venue-guide'],
], $photo],
'atrium-calendar' => ['活动日历', '把下一场活动安排进日程。', '汇总导览、讲座和开放工作坊,并提供报名入口。', [
['calendar', '近期活动', 'event-agenda'], ['hosts', '活动嘉宾', 'speaker-lineup'], ['register', '预约报名', 'event-registration'],
]],
'atrium-access' => ['参观指南', '从出发到抵达,都有清楚的指引。', '说明开放时间、到达方式、无障碍入口和联系方式。', [
['arrival', '交通与入口', 'venue-guide'], ['questions', '参观答疑', 'faq'], ['get-in-touch', '联系场馆', 'contact-card'],
]],
]],
'harbor' => ['Harbor · 社群', '墨蓝、暖黄和轻柔圆角,适合志愿团队和社区项目。', [
'harbor-community' => ['社群首页', '和愿意动手的人一起做事。', '用正在进行的项目和参与方式介绍社群。', [
['mission', '我们在做什么', 'split-story-left'], ['projects', '正在进行的项目', 'network'], ['get-in-touch', '加入社群', 'contact-card'],
], $photo],
'harbor-volunteer' => ['志愿者招募', '把自己擅长的一件事带进来。', '说明可认领的任务、参与时间和报名流程。', [
['roles', '可以认领的任务', 'features'], ['process', '从报名到开始', 'timeline'], ['get-in-touch', '提交申请', 'contact-card'],
]],
'harbor-report' => ['阶段报告', '把这一阶段的进展交代清楚。', '展示关键数据、实际成果和下一阶段安排。', [
['impact', '阶段数据', 'metrics'], ['updates', '项目简报', 'articles'], ['next-steps', '下一阶段', 'timeline'],
]],
]],
'index' => ['Index · 资料库', '紫墨与浅灰纸面,适合研究资料、课程参考和开放文档。', [
'index-library' => ['资料库首页', '从一份可靠的资料开始。', '为读者提供主题入口、近期更新和检索指引。', [
['subjects', '按主题阅读', 'reading-path'], ['records', '最新资料', 'articles'], ['help', '使用答疑', 'faq'],
], $interface],
'index-study' => ['研究专题', '把证据、结论和出处放在一起。', '清楚交代研究问题,并提供阅读顺序与相关资料。', [
['overview', '研究导读', 'editorial-feature'], ['findings', '阶段发现', 'table'], ['sources', '参考资料', 'resources'],
]],
'index-reference' => ['使用手册', '把容易忘记的步骤记下来。', '整理操作示例、准备清单和后续支持。', [
['prepare', '准备清单', 'checklist'], ['examples', '操作示例', 'reference-code'], ['get-in-touch', '获取支持', 'support-channels'],
]],
]],
];
foreach ($newSuites as $theme => [$name, $description, $templates]) {
$pages = [];
foreach ($templates as $key => $template) {
$pages[$key] = $compose($template, $template[4] ?? []);
}
$groups[$theme] = compact('name', 'description', 'pages');
}
return $groups;