7
Home
hanyixuanten edited this page 2026-10-25 12:51:30 +00:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

班史模板 class-history-template

基于 Astro 7 + Cloudflare Pages 的班级纪念册模板:班史文章、班级歌单、留言墙、在线投稿(PR 审核流)开箱即用。

功能一览

  • 🏠 首页:班级简介、人物志、荣誉墙、记忆墙(均为示例文案,可自行替换)
  • 📖 班史列表 / 文章页:src/content/*.md 自动生成,按日期升序排列,支持封面、摘要、上下篇导航
  • 🎵 班级歌单:src/songs/*.json 自动生成,支持每日随机排序、随机抽歌
  • 💬 留言墙:Cloudflare D1 数据库存储
  • 📝 在线投稿:班史 / 音乐两种表单,提交后由 CMS-Bot 自动建分支并发 PR,管理员审核合并后自动发布

文档导航

页面 内容
Quick-Start 本地调试 / 部署到 Cloudflare 两种方案、班级信息定制、删除示例内容
Content-Format 班史文章 / 歌曲的文件格式与字段说明
Deployment 构建配置、环境变量总表
CMS-Bot 投稿机器人的创建、安装与配置
Message-Board D1 数据库创建与绑定
Turnstile 投稿表单人机验证(可选)

相关链接