页面与版式
页面与版式
内容在哪里
前台页面都是 storage/content/ 下的 Markdown 文件:
storage/content/pages/:首页、关于、联系等独立页面storage/content/products/:产品storage/content/cases/:案例storage/content/articles/:文章storage/content/services/:服务
首页的标题与描述由 storage/content/pages/home.md 的 Frontmatter 决定,改首页请先改这个文件。
怎么改
后台「内容管理」可以编辑并保存这些文件;也可以直接用编辑器改 Markdown,前台刷新即生效。标题、描述、封面、发布时间等写在文件开头的 Frontmatter 中。
外观
前台模板放在 templates/,样式放在 assets/。改样式不需要动 framework/,在线更新也不会覆盖你放在 storage/ 的内容与配置。
导航与迁移
顶部导航与页脚入口在「设置」里维护;旧站迁移产生的 301 规则写在 storage/config/redirects.conf。