feat(templates):新增 Markdown 内容页支持
新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
This commit is contained in:
12
config/_default/pages/content.yml
Normal file
12
config/_default/pages/content.yml
Normal 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
|
||||
Reference in New Issue
Block a user