feat(templates):新增 Markdown 内容页支持

新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
This commit is contained in:
rbetree
2026-01-20 17:43:06 +08:00
parent f773b9e290
commit 280d376bac
13 changed files with 642 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# 默认页面配置(请勿直接修改)。
# 建议复制到 config/user/pages/content.yml 并按需调整。
title: 关于
subtitle: 项目说明
# 指定使用的模板文件名,现有页面模板可见 templates/pages不含 .hbs
# 内容页模板templates/pages/content.hbs
template: content
# 本期仅支持文件模式:读取本地 markdown 文件
content:
file: content/about.md